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.0"
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/pundit_extra/controller_mixin.rb', line 5 def self.included(base) if defined? ActionController::Base ActionController::Base.class_eval do include PunditExtra::Helpers include PunditExtra::ResourceAutoload end end end |