search for: user_language

Displaying 1 result from an estimated 1 matches for "user_language".

Did you mean: set_language
2006 Jan 15
1
how to provide plugin configuration?
...e be configurable but am not sure how to provide this configurability. For example, there''s a setting for the cookie name to use when saving user''s prefered language. I thought of having a class TranslationConfig like this: class TranslationsConfig def self.cookie_name :user_language end end But that implies that if you want to change this setting, you should reopen the class somewhere (I''m not even sure that putting it in environment.rb would work as I thought plugins are loaded last). Also, how can write unit tests for different settings so I can check that the...