5 attr :model, :list_name, :list_manifest, :type,
6 :default_page_size, :max_page_size
8 def initialize model, list_name, list_manifest
10 @list_name = list_name
11 @list_manifest = list_manifest
17 @list_manifest['args'] ||= {}
19 @default_page_size = @conf['default_page_size'] || 25
20 @max_page_size = @conf['max_page_size'] || 100
21 @params_offset = params_offset
22 @params_count = params_count
23 @list_list_conf = @manifest.list(@item_name).lists[list_name] || {}
24 @model_name = @list_list_conf['model']
25 @filter_key = @list_list_conf['filter_key']
26 @model = @model_name.classify.constantize
27 @table_name = @model.table_name
29 @owner_model = @model.owner_model
30 @owner_table_name = @owner_model.table_name if @owner_model
35 @type = @list_manifest['type']
36 @args = @list_manifest['args']
39 def self.add_action item_name, action_name, list_name, list_conf