Class: Acl9::Dsl::Generators::BooleanMethod

Inherits:
FilterMethod show all
Defined in:
lib/acl9/controller_extensions/generators.rb

Direct Known Subclasses

HelperMethod

Constant Summary

Constants inherited from Base

Base::VALID_PREPOSITIONS

Instance Attribute Summary

Attributes inherited from Base

#allows, #denys

Instance Method Summary collapse

Methods inherited from FilterMethod

#initialize

Methods inherited from BaseGenerator

#initialize

Methods inherited from Base

#acl_block!, #allowance_expression, #default_action, #initialize

Constructor Details

This class inherits a constructor from Acl9::Dsl::Generators::FilterMethod

Instance Method Details

#install_on(controller_class, opts) ⇒ Object



153
154
155
156
157
158
159
160
161
# File 'lib/acl9/controller_extensions/generators.rb', line 153

def install_on(controller_class, opts)
  debug_dump(controller_class) if opts[:debug]

  _add_method(controller_class)

  if opts[:helper]
    controller_class.send(:helper_method, @method_name)
  end
end