Sha256: bb83b058157157c54b7655607435771123cf89d77ac9039363dc01feff04d533

Contents?: true

Size: 401 Bytes

Versions: 2

Compression:

Stored size: 401 Bytes

Contents

class Form < ActiveRecord::Base
  validates_presence_of :name, :model
  has_and_belongs_to_many :form_attributes, :class_name => 'Attribute', :readonly => true, :order => 'position'
  has_and_belongs_to_many :dynamic_attributes, :class_name => 'Attribute', :readonly => true,
    :join_table => 'attributes_forms', :association_foreign_key => 'attribute_id',
    :conditions => {:dynamic => true}
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forgeos_commerce-1.9.1.rc1 app/models/form.rb
forgeos_commerce-1.9.0 app/models/form.rb