integrallis / stripe_event

Stripe webhook integration for Rails applications.
https://rubygems.org/gems/stripe_event
MIT License
841 stars 107 forks source link

Wrong Number of Arguments (0 for 1), after upgrading to 1.0.0 #28

Closed thewatts closed 10 years ago

thewatts commented 10 years ago

Upgraded to 1.0.0 from 0.6.0 -- now receiving an error.

Here's the stacktrace https://gist.github.com/thewatts/c546c18cbb0528557447

Here's the code: https://gist.github.com/thewatts/933e955532c350bfcf97

Thanks for your help (and for a great gem) !!

invisiblefunnel commented 10 years ago

Thanks! Glad you like the gem.

You can subscribe to all events in 1.0.0 with all. Make the following change and you'll be good to go.

StripeEvent.setup do
  # ...
  all do |event|
    Rails.logger.info("================ EVENT!")
    Rails.logger.info event
  end
end
thewatts commented 10 years ago

@invisiblefunnel !! Thanks so much for your speedy reply! (and my apologies for my late thanks!)