module ActiveList::Rails::Integration::ViewsHelper

Public Instance Methods

list(*args, &block) click to toggle source

Calls the generated view helper

# File lib/active_list/rails/integration.rb, line 25
def list(*args, &block)
  options = args.extract_options!
  name = args.shift
  kontroller = controller.class
  begin
    helper_method = "_#{kontroller.controller_name}_#{__method__}_#{name || kontroller.controller_name}_tag".to_sym
    kontroller = kontroller.superclass
  end until respond_to?(helper_method)
  send(helper_method, options, &block)
end