search for: translationsconfig

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

Did you mean: translationconfig
2006 Jan 15
1
how to provide plugin configuration?
...n I use in one app. I''d like the plugin the 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...