Skip to content

Commit

Permalink
Merge branch 'gssbzn-optimize-role-names'
Browse files Browse the repository at this point in the history
  • Loading branch information
EppO committed Feb 26, 2019
2 parents 35afa2e + e1ac260 commit 51cad06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rolify/role.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def remove_role(role_name, resource = nil)
deprecate :has_no_role, :remove_role

def roles_name
self.roles.select(:name).map { |r| r.name }
self.roles.pluck(:name)
end

def method_missing(method, *args, &block)
Expand Down

0 comments on commit 51cad06

Please sign in to comment.