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

Fails on AR:base create transactions #7

Open
parolkar opened this issue Jul 3, 2009 · 1 comment
Open

Fails on AR:base create transactions #7

parolkar opened this issue Jul 3, 2009 · 1 comment

Comments

@parolkar
Copy link

parolkar commented Jul 3, 2009

I am on ruby 1.8.7 , Rails 2.3.2 , cache-money 0.2.5

This works

Location.new(:lat => 12.1, :lng => 12.2)

<Location id: nil, lat: #BigDecimal:3e33e44,'0.121E2',8(8), lng: #BigDecimal:3e33df4,'0.122E2',8(8), address: nil, city: nil, state: nil, country: nil, pincode: nil, created_at: nil, updated_at: nil>

This fails

Location.create(:lat => 12.1, :lng => 12.2)

ArgumentError: wrong number of arguments (4 for 2)
from /vendor/gems/nkallen-cache-money-0.2.5/lib/cash/buffered.rb:123:in set' from /vendor/gems/nkallen-cache-money-0.2.5/lib/cash/buffered.rb:123:insend'
from /vendor/gems/nkallen-cache-money-0.2.5/lib/cash/buffered.rb:123:in call' from /vendor/gems/nkallen-cache-money-0.2.5/lib/cash/buffered.rb:94:inperform_commands'
from /vendor/gems/nkallen-cache-money-0.2.5/lib/cash/buffered.rb:93:in each' from /vendor/gems/nkallen-cache-money-0.2.5/lib/cash/buffered.rb:93:inperform_commands'
from /vendor/gems/nkallen-cache-money-0.2.5/lib/cash/buffered.rb:75:in flush' from /vendor/gems/nkallen-cache-money-0.2.5/lib/cash/transactional.rb:19:intransaction'
from /vendor/gems/nkallen-cache-money-0.2.5/lib/cache_money.rb:50:in transaction' from /vendor/rails/activerecord/lib/active_record/transactions.rb:228:inwith_transaction_returning_status'
from /vendor/rails/activerecord/lib/active_record/transactions.rb:196:in save' from /vendor/rails/activerecord/lib/active_record/transactions.rb:208:inrollback_active_record_state!'
from /vendor/rails/activerecord/lib/active_record/transactions.rb:196:in save' from /vendor/rails/activerecord/lib/active_record/base.rb:728:increate'
from (irb):1

Help with this...

@parolkar
Copy link
Author

parolkar commented Jul 3, 2009

This is fixed in , http://github.com/parolkar/cache-money/tree/master

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