lib/mail_engine/engine.rb in mail_engine-0.1.1 vs lib/mail_engine/engine.rb in mail_engine-0.1.2

- old
+ new

@@ -1,26 +1,27 @@ module MailEngine class Engine < Rails::Engine require 'mail_engine' require 'carrierwave' require 'kaminari' - + require 'deep_cloneable' + require 'liquid' + require 'mail_engine/liquid_view_patch/liquid_view' + initializer "mail_engine" do ActionMailer::Base.send(:include, MailEngine::Sendgrid::Base) require 'mail_engine/action_mailer_patch' end initializer "mail_engine.register_liquid_template" do - require 'liquid' - require 'extras/liquid_view' ActionView::Template.register_template_handler(:liquid, LiquidView) end initializer "mail_engine.register_database_template" do ActionMailer::Base.layout "layouts/mail_engine/mail_template_layouts/none" ActionMailer::Base.send(:prepend_view_path, MailEngine::MailTemplate::Resolver.instance) end - + initializer "mail_engine.add_acts_as_mail_receiver" do ActiveRecord::Base.send(:include, MailEngine::ActsAsMailReceiver) end rake_tasks do \ No newline at end of file