Sha256: 5bebc9df0f4e5af16d4413b286de116d3b97d5d421ae69aa2e85f0348008934b
Contents?: true
Size: 1.21 KB
Versions: 5
Compression:
Stored size: 1.21 KB
Contents
# Use this setup block to configure all options available in i18nline. I18nline.setup do |config| # A helper method available in your views so we can ask if there is a current user. config.current_user_method = "current_user" # A method your current_user has to respond to affirmatively to be able to # interact with i18nline administration features, like inline markers and # translation management views. # This method will be tried in the instance returned by the 'current_user' helper # specified above: current_user.can_translate? config.can_translate_method = "can_translate?" # A route available in your application to redirect the user to login # when he tries to access to protected views. This route should be # available on your 'rake routes'. config.login_route = "/login" # Missing translations will be generated for this locales. config.enabled_locales = %w(en es it pt) # Complex translations use serialized yaml objects. If the translator changes # the serialization markers, the translation can be made unusable. # If 'show_yaml_warning' is set to true, a warning message will appear # when accessing a translation set presenting serialized data. config.show_yaml_warning = true end
Version data entries
5 entries across 5 versions & 1 rubygems