class ProgressiveRender::Rails::PathResolver::TemplateContext

Holds the request parameters. Used to decouple the ProgressiveRequest from the renderer.

Attributes

action[RW]
controller[RW]
type[RW]

Public Instance Methods

valid?() click to toggle source
# File lib/progressive_render/rails/path_resolver.rb, line 10
def valid?
  valid_type? && valid_controller? && valid_action?
end

Private Instance Methods

valid_action?() click to toggle source
# File lib/progressive_render/rails/path_resolver.rb, line 24
def valid_action?
  !action.nil? && !action.empty?
end
valid_controller?() click to toggle source
# File lib/progressive_render/rails/path_resolver.rb, line 20
def valid_controller?
  !controller.nil? && !controller.empty?
end
valid_type?() click to toggle source
# File lib/progressive_render/rails/path_resolver.rb, line 16
def valid_type?
  type == :view || type == :controller
end