You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
g = SolidusPaypalBraintree::Gateway.new(
name: "Braintree",
preference_source: "braintree_credentials"
)
g.save
and get:
ActiveRecord::SubclassNotFound: The single-table inheritance mechanism failed to locate the subclass: 'Solidus::Gateway::BraintreeGateway'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Spree::PaymentMethod.inheritance_column to use another column for that information.
Inspecting the object I see that g.type is "SolidusPaypalBraintree::Gateway" not Solidus::Gateway::BraintreeGateway
The text was updated successfully, but these errors were encountered:
Ah, figured it out. Nothing to do with this gem. Before installing this gem I tried out the solidus_braintree gem and then deleted it. What I didn't realise was the payment method record still existed (as it was soft deleted) but the gateway class it was looking for no longer existed.
@digitalWestie how did you solved deleting the gateway class? I'm getting
"ActiveRecord::SubclassNotFound (The single-table inheritance mechanism failed to locate the subclass: 'Solidus::Gateway::BraintreeGateway'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Spree::PaymentMethod.inheritance_column to use another column for that information.)"
I'm using solidus 2.4.2, and after installing gem from latest commit:
gem 'solidus_paypal_braintree', :git => 'https://github.com/solidusio/solidus_paypal_braintree.git', :ref => '898eb2cad5438f1540bf7cb636e90a24038ad4fb'
I ran
and get:
Inspecting the object I see that
g.type
is"SolidusPaypalBraintree::Gateway"
notSolidus::Gateway::BraintreeGateway
The text was updated successfully, but these errors were encountered: