Griddler配置undefined方法processor_class

时间:2013-06-06 01:07:46

标签: ruby-on-rails ruby email griddler

我根据github的说明创建了config / initializers / griddler.rb:

Griddler.configure do |config|
  config.processor_class = EmailProcessor
  config.to = :email # :full, :email, :hash 
  config.reply_delimiter = '-- REPLY ABOVE THIS LINE --'
  config.email_service = :mandrill
end

在运行时我收到此错误:

 /app/config/initializers/griddler.rb:2:in `block in <top (required)>': undefined method `processor_class=' for #<Griddler::Configuration:0x00000004b1eb18> (NoMethodError)

该文件位于./config/initializers/griddler.rb。我不确定为什么会在那里显示/ app。

1 个答案:

答案 0 :(得分:3)

您可能正在使用Griddler gem的过时版本,该版本没有此API。尝试升级到最新版本的Griddler gem(撰写本文时为0.5.0)。