CarrierWave::Qiniu::Style:Module报错
zmcNotafraid opened this issue · 4 comments
zmcNotafraid commented
Bundler::GemRequireError: There was an error while trying to load the gem 'carrierwave-qiniu'.
Gem Load Error is: undefined method `class_methods' for CarrierWave::Qiniu::Style:Module
Backtrace for gem load error is:
/Users/zmcNotafraid/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/carrierwave-qiniu-1.0.0/lib/carrierwave/qiniu/style.rb:8:in `<module:Style>'
/Users/zmcNotafraid/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/carrierwave-qiniu-1.0.0/lib/carrierwave/qiniu/style.rb:5:in `<module:Qiniu>'
/Users/zmcNotafraid/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/carrierwave-qiniu-1.0.0/lib/carrierwave/qiniu/style.rb:4:in `<module:CarrierWave>'
正常配置的,运行出现以上问题,carrierwave-qiniu 1.0.0 版本 ruby 2.2.0 rails 4.0.12
huobazi commented
@zmcNotafraid the class_methods
was introduced in Rails 4.2.
ref: rails/rails@b16c36e
ref: https://github.com/rails/rails/blob/v4.2.0/activesupport/CHANGELOG.md
@bastengao , 考虑兼容性,我们是否可以考虑使用 module ClassMethods
,虽然看上去不是那么梦幻和时髦
huobazi commented
@zmcNotafraid 请使用 V1.0.1
@bastengao 感谢您的帮助!
zmcNotafraid commented
好的 感谢!