search for: translationconfig

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

Did you mean: translationsconfig
2006 Jan 15
1
how to provide plugin configuration?
...#39;m finalising a translation plugin 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 la...