app/models/group.rb in browsercms-3.1.5 vs app/models/group.rb in browsercms-3.3.0.beta

- old
+ new

@@ -17,14 +17,14 @@ belongs_to :group_type validates_presence_of :name - named_scope :named, lambda{|n| {:conditions => {:name => n}}} - named_scope :with_code, lambda{|c| {:conditions => {:code => c}}} + scope :named, lambda{|n| {:conditions => {:name => n}}} + scope :with_code, lambda{|c| {:conditions => {:code => c}}} - named_scope :public, :include => :group_type, :conditions => ["group_types.cms_access = ?", false] - named_scope :cms_access, :include => :group_type, :conditions => ["group_types.cms_access = ?", true] + scope :public_groups, :include => :group_type, :conditions => ["group_types.cms_access = ?", false] + scope :cms_access, :include => :group_type, :conditions => ["group_types.cms_access = ?", true] def guest? group_type && group_type.guest? end