Sha256: b5ed30b0a6419cce0484aa180b08cbac4b5b6db5671ecfc57aa45e9e50949733

Contents?: true

Size: 659 Bytes

Versions: 5

Compression:

Stored size: 659 Bytes

Contents

class MailEngine::ApplicationController < ApplicationController
  # used when mail_template preview.
  prepend_view_path MailEngine::MailTemplateResolver.instance

  include MailEngine
  helper MailEngine::MailEngineHelper

  layout 'mail_engine/mail_engine'

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

  ###
  # return js o close fancy box and refresh page.
  def close_modal_and_refresh
    render :text => "<script>parent.$.fancybox.close();parent.window.location.reload();</script>"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mail_engine-0.1.15 app/controllers/mail_engine/application_controller.rb
mail_engine-0.1.14 app/controllers/mail_engine/application_controller.rb
mail_engine-0.1.13 app/controllers/mail_engine/application_controller.rb
mail_engine-0.1.12 app/controllers/mail_engine/application_controller.rb
mail_engine-0.1.11 app/controllers/mail_engine/application_controller.rb