Sha256: 9503b70dc3ebd322e49301544767e5a398843b6b90108f3fe19ade7186b43ff3
Contents?: true
Size: 428 Bytes
Versions: 12
Compression:
Stored size: 428 Bytes
Contents
module Rad::ControllerMiscellaneousHelper def reload_page params = workspace.params params.format.must_be.in 'html', 'js' keep_flash! if params.format == 'js' workspace.response.set!( status: :ok, content_type: Mime[params.format] ) throw :halt, "window.location.reload();" else redirect_to request.env["HTTP_REFERER"] end end end
Version data entries
12 entries across 12 versions & 1 rubygems