Module: Enumerize::Scope::Sequel
- Defined in:
- lib/enumerize/scope/sequel.rb
Instance Method Summary collapse
Instance Method Details
#enumerize(name, options = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/enumerize/scope/sequel.rb', line 6 def enumerize(name, ={}) super _enumerize_module.dependent_eval do if defined?(::Sequel::Model) && self < ::Sequel::Model if [:scope] _define_sequel_scope_methods!(name, ) end require 'enumerize/hooks/sequel_dataset' end end end |