Sha256: 0d7e521027018bab1d9e33d10d837bf8e2377fee25d85a0d81bac7e4f6166659

Contents?: true

Size: 278 Bytes

Versions: 15

Compression:

Stored size: 278 Bytes

Contents

class PageTemplateTerm < ActiveRecord::Base
  belongs_to :page_template
  belongs_to :form_field_type
  has_many :terms
  belongs_to :created_by, :class_name=>"User", :foreign_key=>"created_by"

  validates :name, :presence=>true

  def code_name
    self.name.urlise
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kit_cms-2.3.22 app/models/page_template_term.rb
kit_cms-2.3.20 app/models/page_template_term.rb
kit_cms-2.3.19 app/models/page_template_term.rb
kit_cms-2.3.18 app/models/page_template_term.rb
kit_cms-2.3.17 app/models/page_template_term.rb
kit_cms-2.3.16 app/models/page_template_term.rb
kit_cms-2.3.15 app/models/page_template_term.rb
kit_cms-2.3.14 app/models/page_template_term.rb
kit_cms-2.3.13 app/models/page_template_term.rb
kit_cms-2.3.11 app/models/page_template_term.rb
kit_cms-2.3.10 app/models/page_template_term.rb
kit_cms-2.3.9 app/models/page_template_term.rb
kit_cms-2.3.8 app/models/page_template_term.rb
kit_cms-2.3.7 app/models/page_template_term.rb
kit_cms-2.3.6 app/models/page_template_term.rb