Sha256: 3ae9f453d6343c759b3135ec00e73b84b8ebf73db58929887193319a7ab38c18
Contents?: true
Size: 563 Bytes
Versions: 2
Compression:
Stored size: 563 Bytes
Contents
class SimpleContentManagement::SimpleMenuItem < ActiveRecord::Base belongs_to :parent, class_name: "SimpleContentManagement::SimpleMenuItem" has_many :children, class_name: "SimpleContentManagement::SimpleMenuItem", foreign_key: "parent_id" validates_presence_of :name, :uri, :method, :simple_menu_id validates_inclusion_of :is_target_blank, in: [ true, false ] validates_inclusion_of :method, in: %(get post put delete) attr_accessible :name, :uri, :is_target_blank, :position, :simple_menu_id, :parent_id, :method scope :ordered, order("position") end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
th_simple_content_management-0.2.2 | app/models/simple_content_management/simple_menu_item.rb |
th_simple_content_management-0.2.1 | app/models/simple_content_management/simple_menu_item.rb |