ruby-on-railsrubyemailgriddler

Griddler config undefined method processor_class


I created config/initializers/griddler.rb per the github's instructions:

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

On running I get this error:

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

The file is located at ./config/initializers/griddler.rb . I'm not sure why it shows /app there.


Solution

  • You likely are using an outdated version of the Griddler gem, which did not have this API. Try upgrading to the latest version of the Griddler gem (0.5.0 as of this writing).