Class: AbAdmin::Config::Export

Inherits:
BaseBuilder show all
Defined in:
lib/ab_admin/config/base.rb

Instance Attribute Summary

Attributes inherited from BaseBuilder

#fields, #options, #partial

Instance Method Summary collapse

Methods inherited from BaseBuilder

default_for_model, #field, #initialize

Constructor Details

This class inherits a constructor from AbAdmin::Config::BaseBuilder

Instance Method Details

#render_optionsObject


42
43
44
45
46
# File 'lib/ab_admin/config/base.rb', line 42

def render_options
  {column_names: fields.map(&:name), column_data: fields.map(&:data),
   column_separator: options[:column_separator], worksheet_name: options[:worksheet_name],
   filename: options[:filename]}
end