Module: Enumerize::Integrations::RailsAdmin
- Defined in:
- lib/enumerize/integrations/rails_admin.rb
Instance Method Summary collapse
Instance Method Details
#enumerize(name, options = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/enumerize/integrations/rails_admin.rb', line 7 def enumerize(name, ={}) super _enumerize_module.module_eval <<-RUBY, __FILE__, __LINE__ + 1 def #{name}_enum self.class.enumerized_attributes[:#{name}].options end RUBY end |