Sha256: f49fd7671c019dfafb22084023f60f4f558ffbd49a95bc2776e937e4a08dc732

Contents?: true

Size: 606 Bytes

Versions: 5

Compression:

Stored size: 606 Bytes

Contents

require "i18nline/engine"
require 'i18nline/railtie' if defined?(Rails)
require 'kaminari'

module I18nline

  ## CONFIGURATION OPTIONS:

  mattr_accessor :current_user_method
  @@current_user_method = "current_user"

  mattr_accessor :can_translate_method
  @@can_translate_method = "can_translate?"

  mattr_accessor :login_route
  @@login_route = "/login"

  mattr_accessor :enabled_locales
  @@enabled_locales = %w(en es it)

  mattr_accessor :show_yaml_warning
  @@show_yaml_warning = true

  def self.setup
    yield self
  end

  private
  mattr_accessor :current_user
  @@current_user ||= nil

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
i18nline-0.0.15.alpha lib/i18nline.rb
i18nline-0.0.14.alpha lib/i18nline.rb
i18nline-0.0.12.alpha lib/i18nline.rb
i18nline-0.0.11.alpha lib/i18nline.rb
i18nline-0.0.10.alpha lib/i18nline.rb