Module: Sequel::Plugins::Enumerize

Defined in:
lib/sequel/plugins/enumerize.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.apply(model) ⇒ Object

Depend on the def_dataset_method plugin


7
8
9
# File 'lib/sequel/plugins/enumerize.rb', line 7

def self.apply(model)
  model.plugin(:def_dataset_method) unless model.respond_to?(:def_dataset_method)
end