]> source.dussan.org Git - redmine.git/commitdiff
add empty line after guard clause to app/models/role.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 5 Nov 2020 13:42:00 +0000 (13:42 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 5 Nov 2020 13:42:00 +0000 (13:42 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20260 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/role.rb

index c2159eeb12012353b54a4f34910cce315b97e5aa..7b097f47ddcde176dd8509c19c4920f92605435f 100644 (file)
@@ -108,6 +108,7 @@ class Role < ActiveRecord::Base
   # Copies attributes from another role, arg can be an id or a Role
   def copy_from(arg, options={})
     return unless arg.present?
+
     role = arg.is_a?(Role) ? arg : Role.find_by_id(arg.to_s)
     self.attributes = role.attributes.dup.except("id", "name", "position", "builtin", "permissions")
     self.permissions = role.permissions.dup
@@ -133,6 +134,7 @@ class Role < ActiveRecord::Base
 
   def remove_permission!(*perms)
     return unless permissions.is_a?(Array)
+
     permissions_will_change!
     perms.each { |p| permissions.delete(p.to_sym) }
     save!