Class: MailEngine::ApplicationController

Inherits:
ApplicationController
  • Object
show all
Includes:
MailEngine
Defined in:
app/controllers/mail_engine/application_controller.rb

Constant Summary

Constants included from MailEngine

PLACEHOLDERS_IN_LAYOUT, VERSION

Instance Method Summary collapse

Instance Method Details

#close_modal_and_refreshObject

return js o close fancy box and refresh page.



17
18
19
# File 'app/controllers/mail_engine/application_controller.rb', line 17

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