Class: Iron::Account::ImportsController
- Inherits:
-
Iron::ApplicationController
- Object
- ActionController::Base
- Iron::ApplicationController
- Iron::Account::ImportsController
- Defined in:
- app/controllers/iron/account/imports_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
11 12 13 14 15 16 |
# File 'app/controllers/iron/account/imports_controller.rb', line 11 def create @import = Account::Import.create!(import_params) @import.file.attach(params[:account_import][:file]) @import.process_later redirect_to @import, notice: t("iron.account.imports.notifications.started") end |
#index ⇒ Object
3 4 5 |
# File 'app/controllers/iron/account/imports_controller.rb', line 3 def index @imports = Account::Import.order(created_at: :desc) end |