mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-20 18:42:03 +00:00
add empty line after guard clause to app/models/group_builtin.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20503 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b96d4c06e5
commit
98da3afcd2
@ -39,15 +39,18 @@ class GroupBuiltin < Group
|
||||
class << self
|
||||
def load_instance
|
||||
return nil if self == GroupBuiltin
|
||||
|
||||
instance = unscoped.order('id').first || create_instance
|
||||
end
|
||||
|
||||
def create_instance
|
||||
raise 'The builtin group already exists.' if exists?
|
||||
|
||||
instance = unscoped.new
|
||||
instance.lastname = name
|
||||
instance.save :validate => false
|
||||
raise 'Unable to create builtin group.' if instance.new_record?
|
||||
|
||||
instance
|
||||
end
|
||||
private :create_instance
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user