Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist multiple CashBookEntries #38

Open
stfnndrsn opened this issue Feb 26, 2015 · 0 comments
Open

Persist multiple CashBookEntries #38

stfnndrsn opened this issue Feb 26, 2015 · 0 comments

Comments

@stfnndrsn
Copy link

I'm trying to create severalt Economic::CashBookEntry and append them to Economic::CashBook entries

I can't find a way to persist them all at the same time.

cash_book = economic.cash_books.find(number: 1)
entry = Economic::CashBookEntry.new
entry.text = 'Random'
entry.amount = 100
entry.date = Time.now
cash_book.entries << entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant