Module: CanCanNamespace::ControllerResource

Defined in:
lib/cancan_namespace/controller_resource.rb

Overview

Handle the load and authorization controller logic so we don’t clutter up all controllers with non-interface methods. This class is used internally, so you do not need to call methods directly on it.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



5
6
7
8
# File 'lib/cancan_namespace/controller_resource.rb', line 5

def self.included(base)
  base.send :include, InstanceMethods
  base.send :extend,  ClassMethods
end