Module: CanField::ControllerAdditions

Defined in:
lib/can_field/controller_additions.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



47
48
49
50
51
# File 'lib/can_field/controller_additions.rb', line 47

def self.included(receiver)
  receiver.extend         ClassMethods
  receiver.send :include, InstanceMethods
  receiver.helper_method :allowed_fields_for, :canf?
end