Commit 386ac9251f88edee4e342b18fe528655f3e70b1c

Authored by AntonioTerceiro
1 parent 1cba99e5

ActionItem41: simplifyng the gettext test


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1323 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
vendor/plugins/access_control/lib/role.rb
... ... @@ -25,7 +25,7 @@ class Role < ActiveRecord::Base
25 25  
26 26 def name
27 27 text = self[:name]
28   - self.class.included_modules.map {|item| item.to_s}.include?('GetText') ? gettext(text) : text
  28 + self.class.included_modules.map(&:to_s).include?('GetText') ? gettext(text) : text
29 29 end
30 30  
31 31 before_destroy :check_for_system_defined_role
... ...