AgilTec/cadenero — pull request #2 by joseluistorres (2013-07-14 15:29:55+00:00)
Title: Fixing minor best practices in the code

Hi @mvidaurre I just fixed some whitespaces and move a couple of lines to the Account model.
Since in accounts_controller.rb you are validating if account is valid I moved these two lines
```
@account.create_schema
@account.ensure_authentication_token!
```
to create_with_owner
```
def self.create_with_owner(params={})
account = new(params)
if account.save
account.users << account.owner
account.create_schema
account.ensure_authentication_token!
end
account
end
```

There are a few methods not used, but I'm not sure about it. Take a look at the screenshot
![screen shot 2013-07-14 at 10 25 08 am](https://f.cloud.github.com/assets/216166/794421/1ce97fd2-ec9a-11e2-9d32-42a8066229c1.png)