Module: ActiveDecorator

Defined in:
lib/active_decorator/helpers.rb,
lib/active_decorator/config.rb,
lib/active_decorator/railtie.rb,
lib/active_decorator/version.rb,
lib/active_decorator/decorator.rb,
lib/active_decorator/view_context.rb,
lib/active_decorator/monkey/active_record/associations.rb,
lib/active_decorator/monkey/action_view/object_renderer.rb,
lib/active_decorator/monkey/action_view/partial_renderer.rb,
lib/active_decorator/monkey/abstract_controller/rendering.rb,
lib/active_decorator/monkey/action_view/collection_renderer.rb,
lib/active_decorator/monkey/action_controller/base/rescue_from.rb

Overview

A monkey-patch for Action Controller to pass the controller view_context over to ‘render` invocation in `rescue_from` block.

Defined Under Namespace

Modules: Decorated, Helpers, Monkey, RelationDecorator, RelationDecoratorLegacy, ViewContext Classes: Decorator, Railtie

Constant Summary collapse

VERSION =
'1.4.1'

Class Method Summary collapse

Class Method Details

.configObject



4
5
6
# File 'lib/active_decorator/config.rb', line 4

def self.config
  @_config ||= Struct.new(:decorator_suffix).new
end

.configure {|config| ... } ⇒ Object

Yields:



8
9
10
# File 'lib/active_decorator/config.rb', line 8

def self.configure
  yield config
end