Module: Beef::AdminArea::Authorisation
- Defined in:
- lib/admin_area.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(controller) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/admin_area.rb', line 5 def self.included(controller) controller.send(:include, InstanceMethods) controller.extend ClassMethods controller.class_eval do helper_method :authorised? helper_method :not_authorised? hide_action :authorised?, :authorise, :not_authorised? end end |