class Kaminari::Helpers::TemplateWrapper

Wraps the template context and helps each tag render itselves

Attributes

options[R]
params[R]

Private Instance Methods

args_for_lookup(name) click to toggle source
# File lib/kaminari/helpers/helpers.rb, line 25
def args_for_lookup(name)
  if (method = context.method :args_for_lookup).arity == 3
    # 3.0
    method.call name, 'kaminari', true
  else
    # 3.1
    method.call name, ['kaminari'], true, []
  end
end
context() click to toggle source
# File lib/kaminari/helpers/helpers.rb, line 21
def context
  @template.instance_variable_get('@lookup_context')
end