Skip to content

Instantly share code, notes, and snippets.

@shal
Forked from ysv/deposit_fiats.rb
Last active September 2, 2019 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shal/af16e8e9e249f603fe5f5dedfd77677d to your computer and use it in GitHub Desktop.
Save shal/af16e8e9e249f603fe5f5dedfd77677d to your computer and use it in GitHub Desktop.
deposits = [
{ member_id: 3, currency_id: :usd, amount: 1000 }
]
deposits.map do |d|
Deposits::Fiat.create!(d).tap(&:accept!)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment