Skip to content
This repository has been archived by the owner on Dec 20, 2019. It is now read-only.

Commit

Permalink
Removed default group permission pre-load (since permissions are addi…
Browse files Browse the repository at this point in the history
…tive anyway).
  • Loading branch information
Dimitrij Denissenko committed Jan 25, 2010
1 parent 7bed703 commit 2c7e439
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/models/group.rb
Expand Up @@ -16,12 +16,6 @@ class Group < ActiveRecord::Base

serialize :permissions, Hash

def initialize(*args)
super(*args)

self.permissions = self.class.default_group.permissions if new_record?
end

def self.default_group
Group.find_by_name('Default')
end
Expand Down

0 comments on commit 2c7e439

Please sign in to comment.