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



37
38
39
40
# File 'lib/enumerated_attribute/rails_helpers.rb', line 37

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