rails_locale_detection icon indicating copy to clipboard operation
rails_locale_detection copied to clipboard

#user_locale shall be private

Open tmaier opened this issue 11 years ago • 1 comments

Only actions shall be public methods of ApplicationController. (see http://api.rubyonrails.org/classes/ActionController/Base.html)

I used to have #user_locale as a private method.

Now I get the following error message: private methoduser_locale' called for FooController`

tmaier avatar Jan 02 '14 13:01 tmaier

Having only actions be public methods is more of a best practice than an obligation (and that's only mentioned in the guides, not the documentation you linked). It's still a good practice though, so I will fix this shortly.

mateomurphy avatar Jan 02 '14 16:01 mateomurphy