Sha256: f7a67a76817ca27fc99bd2b8f7a6dbfce01791c66f92536b5e58ce8eec9a014b
Contents?: true
Size: 517 Bytes
Versions: 16
Compression:
Stored size: 517 Bytes
Contents
module ForemanTasks # Monkey path until http://projects.theforeman.org/issues/8919 is # resolved and released module AuthorizerExt extend ActiveSupport::Concern included do alias_method_chain :resource_name, :authorized_resource_name end def resource_name_with_authorized_resource_name(klass) if klass.respond_to?(:authorized_resource_name) klass.authorized_resource_name else resource_name_without_authorized_resource_name(klass) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems