Skip to content

Commit

Permalink
Update permission.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
joseramonc committed Jul 25, 2018
1 parent e0209cb commit f61cc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/adminpanel/permission.rb
Expand Up @@ -19,7 +19,7 @@ class Permission < ActiveRecord::Base
validates_presence_of :resource

def name
"#{self.role.name}: #{I18n.t("#{self.class.name.demodulize.downcase}.#{self.action}")} #{symbol_class(self['resource']).display_name}"
"#{self.role.name}: #{I18n.t("#{self.class.name.demodulize.downcase}.#{self.action}")} #{self['resource']}"
end

def self.form_attributes
Expand Down

0 comments on commit f61cc5d

Please sign in to comment.