class Rails::Generator::GeneratedAttribute

Public Instance Methods

field_type_with_enumerated_attribute() click to toggle source
# 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