tansengming/stripe-rails

rake stripe:verify is failing due to changes in Stripe API

antomus opened this issue · 2 comments

rake stripe:verify
** Invoke stripe:verify (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute stripe:verify
rake aborted!
NoMethodError: undefined method all' for Stripe::Plan:Class /home/vagrant/.rvm/gems/ruby-2.5.5/gems/stripe-rails-1.9.0/lib/stripe/rails/tasks.rake:5:in block (2 levels) in <top (required)>'
/home/vagrant/.rvm/gems/ruby-2.5.5/gems/rake-13.0.0/exe/rake:27:in <top (required)>' /home/vagrant/.rvm/gems/ruby-2.5.5/bin/ruby_executable_hooks:24:in eval'
/home/vagrant/.rvm/gems/ruby-2.5.5/bin/ruby_executable_hooks:24:in `

'
Tasks: TOP => stripe:verify
(See full trace by running task with --trace)

Please change Stripe::Plan.all to Stripe::Plan.list

Hi @antomus thanks for reporting this. It'll get fixed on #167