Skip to content

Commit

Permalink
The private method with_callbacks on the Cart class now returns the c…
Browse files Browse the repository at this point in the history
…lass object when successful.
  • Loading branch information
Jean-Francois Turcot committed Aug 9, 2010
1 parent bddda90 commit 3906dab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/active_cart/cart.rb
Expand Up @@ -184,6 +184,8 @@ def with_callbacks(type, item, quantity, options, &blk)

@storage_engine.send("after_#{type}".to_sym, item, quantity, options) if @storage_engine.respond_to?("after_#{type}".to_sym)
item.send("after_#{type}".to_sym, quantity, options) if item.respond_to?("after_#{type}".to_sym)

self
end
end
end

0 comments on commit 3906dab

Please sign in to comment.