Class: Rails::Generators::GeneratedAttribute
- Inherits:
-
Object
- Object
- Rails::Generators::GeneratedAttribute
- Defined in:
- lib/enumerated_attribute/rails_helpers.rb
Instance Method Summary collapse
Instance Method Details
#field_type_with_enumerated_attribute ⇒ Object
36 37 38 39 |
# File 'lib/enumerated_attribute/rails_helpers.rb', line 36 def field_type_with_enumerated_attribute return (@field_type = :enum_select) if type == :enum field_type_without_enumerated_attribute end |