Sha256: 7b3a08897936606dcec017ab81b417c8e3f7a4eb6226d4b67c08149b1fa4a211
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
module Rad module 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_render, "window.location.reload();" else redirect_to workspace.request.env["HTTP_REFERER"] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rad_core-0.0.13 | lib/rad/integration/controller_micelaneous_helper.rb |