Class: Rails::Generator::GeneratedAttribute

Inherits:
Object
  • Object
show all
Defined in:
lib/enumerated_attribute/rails_helpers.rb

Instance Method Summary collapse

Instance Method Details

#field_type_with_enumerated_attributeObject



29
30
31
32
# File 'lib/enumerated_attribute/rails_helpers.rb', line 29

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