Sha256: 5620c5ff03d02e5b7138cfdd61521f18bac10935ef99f6ae1a60ae76e3122618
Contents?: true
Size: 880 Bytes
Versions: 22
Compression:
Stored size: 880 Bytes
Contents
class AdminAssistant module Request class Index < Base def call index = AdminAssistant::Index.new( @admin_assistant, @controller.params, controller_methods ) @controller.instance_variable_set :@index, index if @controller.respond_to?(:before_render_for_index) @controller.send :before_render_for_index end render_template_file end def columns @admin_assistant.index_settings.columns end def controller_methods c_methods = {} possible_methods = [ :conditions_for_index, :extra_right_column_links_for_index ] possible_methods.each do |mname| if @controller.respond_to?(mname) c_methods[mname] = @controller.method mname end end c_methods end end end end
Version data entries
22 entries across 22 versions & 1 rubygems