Sha256: e0da7dd479a5999aff206022778ead55847ee599175c63d24b9646f544ec3e25

Contents?: true

Size: 578 Bytes

Versions: 4

Compression:

Stored size: 578 Bytes

Contents

class MailEngine::ApplicationController < ApplicationController
  # used when mail_template preview.
  prepend_view_path MailEngine::MailTemplateResolver.instance
  layout 'mail_engine/mail_engine'

  # set the access check method.
  if MailEngine::Base.current_config["access_check_method"].present?
    before_filter MailEngine::Base.current_config["access_check_method"]
  end

  include MailEngine
  helper MailEngine::MailEngineHelper

  def close_modal_and_refresh
    render :text => "<script>parent.$.fancybox.close();parent.window.location.reload();</script>"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mail_engine-0.1.6 app/controllers/mail_engine/application_controller.rb
mail_engine-0.1.5 app/controllers/mail_engine/application_controller.rb
mail_engine-0.1.4 app/controllers/mail_engine/application_controller.rb
mail_engine-0.1.3 app/controllers/mail_engine/application_controller.rb