cirandas.net

ref: master

vendor/plugins/access_control/lib/permission_name_helper.rb


1
2
3
4
5
6
module PermissionNameHelper
  def permission_name(p)
    msgid = ActiveRecord::Base::PERMISSIONS.values.inject({}){|s,v| s.merge(v)}[p]
    gettext(msgid)
  end
end