Module: CustomAttributes::CustomAttributesHelper
- Defined in:
- lib/generators/custom_attributes/templates/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#custom_attribute_types ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/generators/custom_attributes/templates/application_helper.rb', line 3 def custom_attribute_types types = { CustomAttributes::CustomAttribute::TYPE_NUMBER => "Number", CustomAttributes::CustomAttribute::TYPE_DECIMAL => "Decimal", # CustomAttributes::CustomAttribute::TYPE_DATE => "Date", # CustomAttributes::CustomAttribute::TYPE_DATE_TIME => "Date Time", CustomAttributes::CustomAttribute::TYPE_TEXT => "Single Line Text", CustomAttributes::CustomAttribute::TYPE_MULTILINE_TEXT => "Paragraph Text" } end |