Module: AbstractController::Rendering::ClassMethods

Defined in:
actionpack/lib/abstract_controller/rendering.rb

Instance Method Summary collapse

Instance Method Details

#view_context_classObject



51
52
53
54
55
56
57
# File 'actionpack/lib/abstract_controller/rendering.rb', line 51

def view_context_class
  @view_context_class ||= begin
    routes  = _routes  if respond_to?(:_routes)
    helpers = _helpers if respond_to?(:_helpers)
    ActionView::Base.prepare(routes, helpers)
  end
end