Coder Social home page Coder Social logo

active_cart's People

Contributors

madpilot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

active_cart's Issues

acts_as_cart breaks belongs_to in Rails 3

The def_delegators that are set in acts_as_cart breaks belongs_to in the Cart model when used with Rails 3 and Ruby 1.9.2-rc2.

account = Account.first
cart = account.carts.create!
cart.account
TypeError: can't convert String into Integer
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/activerecord-3.0.0.rc/lib/active_record/associations/association_proxy.rb:218:in `[]'
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/activerecord-3.0.0.rc/lib/active_record/associations/association_proxy.rb:218:in `method_missing'
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/activerecord-3.0.0.rc/lib/active_record/associations/association_collection.rb:432:in `method_missing'
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/activerecord-3.0.0.rc/lib/active_record/associations/belongs_to_association.rb:58:in `find_target'
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/activerecord-3.0.0.rc/lib/active_record/associations/association_proxy.rb:237:in `load_target'
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/activerecord-3.0.0.rc/lib/active_record/associations/association_proxy.rb:118:in `reload'
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/activerecord-3.0.0.rc/lib/active_record/associations.rb:1364:in `block in association_accessor_methods'
from (irb):2
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/railties-3.0.0.rc/lib/rails/commands/console.rb:44:in `start'
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/railties-3.0.0.rc/lib/rails/commands/console.rb:8:in `start'
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/railties-3.0.0.rc/lib/rails/commands.rb:23:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

Transition events don't work

I messed up the aasm setup. I need to re-think this as at the moment, creating new events don't propagate through to the parent cart, and there is no way to override existing transitions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.