Sha256: 3575432088f83632f2614335c6ca87bb217a5b00f372697d3736eaa2df14d9bc
Contents?: true
Size: 469 Bytes
Versions: 35
Compression:
Stored size: 469 Bytes
Contents
class GroupType < ActiveRecord::Base has_many :groups has_many :group_type_permissions has_many :permissions, :through => :group_type_permissions named_scope :guest, :conditions => ["group_types.guest = ?", true] named_scope :non_guest, :conditions => ["group_types.guest = ?", false] named_scope :cms_access, :conditions => ["group_types.cms_access = ?", true] named_scope :non_cms_access, :conditions => ["group_types.cms_access = ?", false] end
Version data entries
35 entries across 35 versions & 11 rubygems