Sha256: 0e59146c2e88e95b0b053bf47ae7947bfa162efaaeca45f73b27ea21161a437a
Contents?: true
Size: 436 Bytes
Versions: 12
Compression:
Stored size: 436 Bytes
Contents
module Rad::ControllerMicelaneousHelper 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 workspace.request.env["HTTP_REFERER"] end end end
Version data entries
12 entries across 12 versions & 1 rubygems