Tyler Pulse
04/06/2022, 3:40 PMRajeswari
04/07/2022, 3:49 PMbubbaspaarx
04/07/2022, 4:37 PMMingming
04/08/2022, 6:34 AMjohann
04/09/2022, 12:02 PMThe file /home/dev/demo-engines/engines/webshop/db/seeds.rb does not appear to exist
when doing rails generate solidus:install
.
rails new demo-engines --database=postgresql --javascript=webpack --css=sass
cd demo-engines
rails plugin new engines/webshop --mountable --database=postgresql --javascript=webpack --css=sass
cd engines/webshop
bundle add solidus --git <https://github.com/peterberkenbosch/solidus/> --branch rails7
rails generate solidus:install
johann
04/09/2022, 12:26 PMDon't know how to build task 'active_storage:install'
-- but it seems since I'm inside an Engine I have to do rails app:active_storage:install
instead. I managed to find a fix, and will submit a PR now.johann
04/09/2022, 1:17 PMBrian
04/09/2022, 2:54 PMJ Bari
04/10/2022, 5:51 PMJ Bari
04/10/2022, 5:52 PMJ Bari
04/10/2022, 5:52 PMJ Bari
04/10/2022, 5:52 PMJared Norman
Oleksandr Pozniak
04/12/2022, 12:44 PMOleksandr Pozniak
04/12/2022, 1:39 PMAhmed
04/13/2022, 12:36 AMmamhoff
04/13/2022, 3:35 PMOleksandr Pozniak
04/14/2022, 12:23 PMXan
04/14/2022, 7:51 PMXan
04/15/2022, 1:41 PMXan
04/15/2022, 1:41 PMDavid Nelson
04/16/2022, 7:07 PMruby 2.4.5
rails 5.2.0
David Nelson
04/16/2022, 7:07 PMsolidus 2.10.5
David Nelson
04/16/2022, 7:09 PMSolidus:
solidus:views:override
Cody Baldwin
04/16/2022, 11:35 PMbubbaspaarx
04/20/2022, 10:50 AMZachary Jones
04/20/2022, 5:56 PMBastian
04/21/2022, 7:27 AMOleksandr Pozniak
04/21/2022, 2:14 PMLocon
04/22/2022, 9:37 PMspree.rb
initializer but for some reason, the checkout controller is not using it.
Spree.rb
Spree::PermittedAttributes.payment_attributes << :my_new_attribute
(byebug) Spree::PermittedAttributes.checkout_payment_attributes
[:coupon_code, {:payments_attributes=>[:amount, :payment_method_id, :payment_method, {:source_attributes=>[:number, :month, :year, :expiry, :verification_value, :first_name, :last_name, :cc_type, :gateway_customer_profile_id, :gateway_payment_profile_id, :last_digits, :name, :encrypted_data, :existing_card_id, :wallet_payment_source_id, {:address_attributes=>[:id, :name, :firstname, :lastname, :first_name, :last_name, :address1, :address2, :city, :country_id, :state_id, :zipcode, :phone, :state_name, :country_iso, :alternative_phone, :company, {:country=>[:iso, :name, :iso3, :iso_name], :state=>[:name, :abbr]}]}]}]}]
(byebug) Spree::PermittedAttributes.payment_attributes
[:amount, :payment_method_id, :payment_method, :my_new_attribute]
Where in theory checkout_payment_attributes
uses payment_attributes
Also the controller uses this method imported from the module
(byebug) permitted_checkout_payment_attributes
[:coupon_code, {:payments_attributes=>[:amount, :payment_method_id, :payment_method, {:source_attributes=>[:number, :month, :year, :expiry, :verification_value, :first_name, :last_name, :cc_type, :gateway_customer_profile_id, :gateway_payment_profile_id, :last_digits, :name,:existing_card_id, :wallet_payment_source_id, {:address_attributes=>[:id, :name, :firstname, :lastname, :company, {:country=>[:iso, :name, :iso3, :iso_name], :state=>[:name, :abbr]}]}]}]}]
And you can see that my_new_attribute
is not included as well.
Am I missing something? Thanks in advance!