Class: Spree::Exports::GiftCards
- Inherits:
-
Spree::Export
- Object
- Spree::Export
- Spree::Exports::GiftCards
- Defined in:
- app/models/spree/exports/gift_cards.rb
Constant Summary
Constants inherited from Spree::Export
Spree::Export::SUPPORTED_FILE_FORMATS
Instance Method Summary collapse
Methods inherited from Spree::Export
available_models, available_types, #build_csv_line, #current_ability, #done?, #export_file_name, #export_tmp_file_path, #generate, #generate_async, #generate_csv, #handle_attachment, #metafields_headers, #model_class, model_class, #multi_line_csv?, #normalize_search_params, #records_to_export, #scope, #send_export_done_email, type_for_model
Instance Method Details
#csv_headers ⇒ Object
8 9 10 |
# File 'app/models/spree/exports/gift_cards.rb', line 8 def csv_headers Spree::CSV::GiftCardPresenter::HEADERS + end |
#scope_includes ⇒ Object
4 5 6 |
# File 'app/models/spree/exports/gift_cards.rb', line 4 def scope_includes [:user, { metafields: :metafield_definition }] end |