fix before_filter method
Merge branch 'api_controller' of http://github.com/alessiosantocs/deploydapp into api_controller