Module: Enumerize::SequelSupport
- Defined in:
- lib/enumerize/sequel.rb
Defined Under Namespace
Modules: InstanceMethods
Instance Method Summary collapse
Instance Method Details
#enumerize(name, options = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/enumerize/sequel.rb', line 5 def enumerize(name, ={}) super _enumerize_module.dependent_eval do if defined?(::Sequel::Model) && self < ::Sequel::Model include InstanceMethods require 'enumerize/hooks/sequel_dataset' end end end |