lib/stripe_event.rb in stripe_event-1.8.0 vs lib/stripe_event.rb in stripe_event-1.9.0

- old
+ new

@@ -15,9 +15,13 @@ def instrument(params) begin event = event_retriever.call(params) rescue Stripe::AuthenticationError => e if params[:type] == "account.application.deauthorized" + if defined?(ActionController::Parameters) && params.is_a?(ActionController::Parameters) + params = params.permit!.to_h + end + event = Stripe::Event.construct_from(params.deep_symbolize_keys) else raise UnauthorizedError.new(e) end rescue Stripe::StripeError => e