Sha256: f6d5c33969d21ea5de831e54c561e1793aac81370745d15692212488bb327474
Contents?: true
Size: 521 Bytes
Versions: 3
Compression:
Stored size: 521 Bytes
Contents
require "i18nline/engine" require 'i18nline/railtie' if defined?(Rails) 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) def self.setup yield self end private mattr_accessor :current_user @@current_user ||= nil end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
i18nline-0.0.4.alpha | lib/i18nline.rb |
i18nline-0.0.3.alpha | lib/i18nline.rb |
i18nline-0.0.2.alpha | lib/i18nline.rb |