class SimpleContentManagement::SimpleMenuItem < ActiveRecord::Base validates_presence_of :name, :uri validates_uniqueness_of :position validates_inclusion_of :is_target_blank, in: [ true, false ] attr_accessible :name, :uri scope :ordered, order("position") acts_as_list end