module CustomAttributes::CustomAttributesHelper

Public Instance Methods

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