tansaku/LocalSupport — pull request #83 by cored (2013-08-01 01:32:24+00:00)
Title: WIP - Refactoring organization controller

This pull request is a work in progress, just because I want to discuss some approaches to refactor the controllers.

I will try to list my thoughts so we can have a conversation going, if we agree to some sort of standard on the code base we can keep working on others parts of the application to get it to the same way.

- At first I'm just trying to remove the coupling between the actual application logic and Rails, I see a lot of direct calls to AR I try to avoid this because this can lead us to duplication.
- After this I'm planning to introduce some sort of service layer between the controllers and the persistence layer, so we can have all the logic in there the business logic that's it.

What do you guys think?