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

Version Path
SFEley-browsercms-3.0.2 app/models/group_type.rb
buzzware-browsercms-3.0.2 app/models/group_type.rb
coredumplings-browsercms-3.0.0 app/models/group_type.rb
nate-browsercms-3.0.210 app/models/group_type.rb
nate-browsercms-3.0.211 app/models/group_type.rb
we5-browsercms-3.0.1.1 app/models/group_type.rb
webficient-browsercms-3.0.1 app/models/group_type.rb
webficient-browsercms-3.0.2 app/models/group_type.rb
webficient-browsercms-3.0.3 app/models/group_type.rb
webficient-browsercms-3.0.4 app/models/group_type.rb
browsercms-3.1.5 app/models/group_type.rb
browsercms-3.1.4 app/models/group_type.rb
browsercms-3.1.3 app/models/group_type.rb
bf4-browsercms-3.1.0 app/models/group_type.rb
drujensen-browsercms-3.2.0 app/models/group_type.rb
browsercmsi-3.1.2 app/models/group_type.rb
browsercms-3.1.2 app/models/group_type.rb
browsercms-3.1.1 app/models/group_type.rb
browsercmsi-3.1.1 app/models/group_type.rb
browsercmsi-3.1.0 app/models/group_type.rb