Module: Enumerize::Scope::ActiveRecord
- Defined in:
- lib/enumerize/scope/activerecord.rb
Instance Method Summary collapse
Instance Method Details
#enumerize(name, options = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/enumerize/scope/activerecord.rb', line 6 def enumerize(name, ={}) super _enumerize_module.dependent_eval do if self < ::ActiveRecord::Base if [:scope] _define_activerecord_scope_methods!(name, ) end end end end |