Module: Sequel::Plugins::Localize

Defined in:
lib/sequel/localize.rb,
lib/sequel/localize/version.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.configure(model, opts = {}) ⇒ Object



6
7
8
9
10
# File 'lib/sequel/localize.rb', line 6

def self.configure(model, opts={})
  require 'sequel/localize/language'
  model._init_translations
  localized_models << model
end

.localized_modelsObject



11
12
13
# File 'lib/sequel/localize.rb', line 11

def self.localized_models
  @localized_models ||= []
end