Module: CSVMagic::ControllerActions::ClassMethods

Defined in:
lib/csv_magic/controller_actions.rb

Instance Method Summary collapse

Instance Method Details

#csv_magic_config(options = {}) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/csv_magic/controller_actions.rb', line 13

def csv_magic_config( options = {} )
  defaults = {
    :action => :import,
    :mapping => {},
    :file_field => :file
  }
  options = defaults.merge(options)
  self.map_fields_options = options
end