Sha256: 31c1b7d2a13f9e2e09c8095931074e235658a0fd3cd333b6420443ae416437d9
Contents?: true
Size: 499 Bytes
Versions: 4
Compression:
Stored size: 499 Bytes
Contents
class Right < ActiveRecord::Base has_and_belongs_to_many :roles has_and_belongs_to_many :categories, :readonly => true, :join_table => 'categories_elements', :foreign_key => 'element_id', :association_foreign_key => 'category_id' #check that fields have data in them validates :name, :controller_name, :action_name, :presence => true define_index do indexes name, :sortable => true indexes controller_name, :sortable => true indexes action_name, :sortable => true end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
forgeos_core-1.9.5.rc2 | app/models/right.rb |
forgeos_core-1.9.5.rc1 | app/models/right.rb |
forgeos_core-1.9.4 | app/models/right.rb |
forgeos_core-1.9.3 | app/models/right.rb |