Sha256: 8d7b2f6b79394eaf2d5fd35a0d40da3c023b6a33e4715783ffc2cfaf555bf208

Contents?: true

Size: 1.22 KB

Versions: 5

Compression:

Stored size: 1.22 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_url"

  # Missing translations will be generated for this locales.
  #config.enabled_locales = %w(en es it)

  # 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

Version Path
i18nline-0.0.15.alpha lib/generators/i18nline/templates/config/initializers/i18nline.rb
i18nline-0.0.14.alpha lib/generators/i18nline/templates/config/initializers/i18nline.rb
i18nline-0.0.12.alpha lib/generators/i18nline/templates/config/initializers/i18nline.rb
i18nline-0.0.11.alpha lib/generators/i18nline/templates/config/initializers/i18nline.rb
i18nline-0.0.10.alpha lib/generators/i18nline/templates/config/initializers/i18nline.rb