Module: PunditExtra

Defined in:
lib/pundit_extra/helpers.rb,
lib/pundit_extra/version.rb,
lib/pundit_extra/controller_mixin.rb,
lib/pundit_extra/resource_autoload.rb

Defined Under Namespace

Modules: Helpers, ResourceAutoload

Constant Summary collapse

VERSION =
"0.1.1"

Class Method Summary collapse

Class Method Details

.included(_base) ⇒ Object



2
3
4
5
6
7
8
9
# File 'lib/pundit_extra/controller_mixin.rb', line 2

def self.included(_base)
  if defined? ActionController::Base
    ActionController::Base.class_eval do
      include PunditExtra::Helpers
      include PunditExtra::ResourceAutoload
    end
  end
end