QuintinAdam / spree_flexi_variants

Spree extension to create product variants as-needed. Spree 3.0+
https://github.com/QuintinAdam/spree_flexi_variants
BSD 3-Clause "New" or "Revised" License
27 stars 38 forks source link

Issue after upgrading to Spree 3.3.0 #13

Closed Dragsbaek closed 6 years ago

Dragsbaek commented 6 years ago

Getting

NoMethodError (undefined method 'with_indifferent_access' for #<ActionController::Parameters:0x007faacb5207b0>):

actionpack (5.1.4) lib/action_controller/metal/strong_parameters.rb:235:in 'initialize'
/Users/thomas/.rvm/gems/ruby-2.3.1/bundler/gems/spree_flexi_variants-db0855e9d9d4/app/models/spree/order_contents_decorator.rb:13:in 'new'
/Users/thomas/.rvm/gems/ruby-2.3.1/bundler/gems/spree_flexi_variants-db0855e9d9d4/app/models/spree/order_contents_decorator.rb:13:in 'add_to_line_item'
spree_core (3.3.2) app/models/spree/order_contents.rb:11:in 'add'
spree_frontend (3.3.2) app/controllers/spree/orders_controller.rb:51:in 'populate'

When adding product to cart in spree 3.3

gbrlcustodio commented 6 years ago

@Dragsbaek, have you figured out how to fix it?

Dragsbaek commented 6 years ago

nope:/

gbrlcustodio commented 6 years ago

Can you try this out https://github.com/gcmartins93/spree_flexi_variants. I've tried on my personal project and it worked. I'll pull request it later.

Dragsbaek commented 6 years ago

Sweet! Thanks man:)

QuintinAdam commented 6 years ago

Changes are now in master or branch spree-3-3