diff options
Diffstat (limited to 'app/models/group_builtin.rb')
-rw-r--r-- | app/models/group_builtin.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/group_builtin.rb b/app/models/group_builtin.rb index 9cedb61df..29e1d8e2a 100644 --- a/app/models/group_builtin.rb +++ b/app/models/group_builtin.rb @@ -37,12 +37,12 @@ class GroupBuiltin < Group class << self def load_instance return nil if self == GroupBuiltin - instance = order('id').first || create_instance + instance = unscoped.order('id').first || create_instance end def create_instance raise 'The builtin group already exists.' if exists? - instance = new + instance = unscoped.new instance.lastname = name instance.save :validate => false raise 'Unable to create builtin group.' if instance.new_record? |