Module: ActAsImportable::Config::ClassMethods
- Defined in:
- lib/act_as_importable/config.rb
Instance Method Summary collapse
Instance Method Details
#act_as_importable(options = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/act_as_importable/config.rb', line 8 def act_as_importable( = {}) include ActAsImportable::Base @default_import_options = @default_import_options[:uid] ||= :id @default_import_options[:model_class] ||= self # create a reader on the class to access the field name class << self; attr_reader :default_import_options end end |