diff --git a/app/controllers/transactions_controller.rb b/app/controllers/transactions_controller.rb index 5257ce8..7e971c8 100644 --- a/app/controllers/transactions_controller.rb +++ b/app/controllers/transactions_controller.rb @@ -11,7 +11,7 @@ class TransactionsController < ApplicationController def create @transaction = current_user.outgoing_transactions.build( - transaction_params.merge(origin: I18n.t('origin.created_by_user')) + transaction_params.merge(origin: I18n.t('origin.created_by_user'))) if @transaction.save redirect_to current_user diff --git a/app/models/transaction.rb b/app/models/transaction.rb index cadbe06..fe56854 100644 --- a/app/models/transaction.rb +++ b/app/models/transaction.rb @@ -5,8 +5,9 @@ # id :integer not null, primary key # debtor_id :integer not null # creditor_id :integer not null +# issuer_id :integer not null +# issuer_type :string not null # amount :integer default(0), not null -# origin :string not null # message :string # created_at :datetime not null # updated_at :datetime not null diff --git a/spec/factories/transactions.rb b/spec/factories/transactions.rb index d0eea9f..21fe059 100644 --- a/spec/factories/transactions.rb +++ b/spec/factories/transactions.rb @@ -5,8 +5,9 @@ # id :integer not null, primary key # debtor_id :integer not null # creditor_id :integer not null +# issuer_id :integer not null +# issuer_type :string not null # amount :integer default(0), not null -# origin :string not null # message :string # created_at :datetime not null # updated_at :datetime not null diff --git a/spec/models/transaction_spec.rb b/spec/models/transaction_spec.rb index 805bf63..d05aaf8 100644 --- a/spec/models/transaction_spec.rb +++ b/spec/models/transaction_spec.rb @@ -5,8 +5,9 @@ # id :integer not null, primary key # debtor_id :integer not null # creditor_id :integer not null +# issuer_id :integer not null +# issuer_type :string not null # amount :integer default(0), not null -# origin :string not null # message :string # created_at :datetime not null # updated_at :datetime not null