Class: Rails::Generator::GeneratedAttribute

Inherits:
Object
  • Object
show all
Defined in:
lib/enum/active_record_helper.rb

Instance Method Summary collapse

Instance Method Details

#field_type_with_enumerated_attributeObject



5
6
7
8
# File 'lib/enum/active_record_helper.rb', line 5

def field_type_with_enumerated_attribute
  return (@field_type = :enum_select) if type == :enum
  field_type_without_enumerated_attribute
end