lib/roles_generic/role.rb in roles_generic-0.2.7 vs lib/roles_generic/role.rb in roles_generic-0.3.3
- old
+ new
@@ -11,9 +11,10 @@
class Role
attr_accessor :name
def self.find_role role_name
+ role_name = Roles::Generic::RoleUtil.extract_role(role_name)
roles.to_a.select do |r|
r.name.to_sym == role_name.to_sym
end.first
end