Class: RespondForHelper::Behaviours
- Inherits:
-
Object
- Object
- RespondForHelper::Behaviours
- Defined in:
- lib/respond_for_helper/behaviour.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(controller, format, result, options) ⇒ Behaviours
constructor
A new instance of Behaviours.
Constructor Details
#initialize(controller, format, result, options) ⇒ Behaviours
Returns a new instance of Behaviours.
35 36 37 38 39 40 41 42 43 |
# File 'lib/respond_for_helper/behaviour.rb', line 35 def initialize(controller, format, result, ) @controller = controller @format = format @result = result @options = @controller_behaviours = @controller.respond_for_config.fetch(:behaviours, {}) @default_behaviours = Config.behaviours end |