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
Would need to add ransackable attributes to pay models for search to work. For example:
config/initializers/pay.rb
module RansackableAttributes
extend ActiveSupport::Concern
included do
def self.ransackable_attributes(auth_object = nil)
%w[id processor_id]
end
end
end
Rails.configuration.to_prepare do
Pay::Subscription.include SubscriptionExtensions
Pay::Subscription.include RansackableAttributes
Pay::Charge.include RansackableAttributes
Pay::Customer.include RansackableAttributes
end
Same goes for regular models, but it's less tricky for them
💡 Would make sense to have a separate avo resources generator for gem Pay
The text was updated successfully, but these errors were encountered:
Would need to add ransackable attributes to pay models for search to work. For example:
config/initializers/pay.rb
Same goes for regular models, but it's less tricky for them
💡 Would make sense to have a separate avo resources generator for gem Pay
The text was updated successfully, but these errors were encountered: