# config/initializers/resque_mailer.rb
Resque::Mailer.excluded_environments = []#[:test, :develop]

module Devise
  module Mailers
    module Helpers
      def hack_record(record)
        record.kind_of?(Hash) ? kmodel(record).where(:email=>record['email']).first : record
      end

      def kmodel(record)
        User
      end
    end
  end
end
# config/initializers/resque_mailer.rb
Resque::Mailer.excluded_environments = [:test, :develop]

module Devise
  module Mailers
    module Helpers
      def hack_record(record)
        record.kind_of?(Hash) ? kmodel(record).where(:email=>record['email']).first : record
      end

      def kmodel(record)
        User
      end
    end
  end
end

EXclude test and develop environments for RescueMailer
EXclude test and develop environments for RescueMailer

Signed-off-by: tomdev <96835dd8bfa718bd6447ccc87af89ae1675daeca@codigy.nl>
