Sha256: 723bd4a6d07bb3fd7703f85d3a331561f9eeb403aefb99ab488e85fe617a4bb3

Contents?: true

Size: 463 Bytes

Versions: 5

Compression:

Stored size: 463 Bytes

Contents

module DynamicFieldsets
  # Base class for various field_html_attributes,
  # an example of an html attribute is {attribute => 'class',value => 'required'}
  # Any field can have more than one html attribute
  #
  # @authors Scott Sampson, Jeremiah Hemphill, Ethan Pemble
  class FieldHtmlAttribute < ActiveRecord::Base
    #relations
    belongs_to :field
    
    #validations
    validates_presence_of :attribute_name
    validates_presence_of :value
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dynamic_fieldsets-0.0.6 app/models/dynamic_fieldsets/field_html_attribute.rb
dynamic_fieldsets-0.0.5 app/models/dynamic_fieldsets/field_html_attribute.rb
dynamic_fieldsets-0.0.4 app/models/dynamic_fieldsets/field_html_attribute.rb
dynamic_fieldsets-0.0.3 app/models/dynamic_fieldsets/field_html_attribute.rb
dynamic_fieldsets-0.0.2 app/models/dynamic_fieldsets/field_html_attribute.rb