Sha256: ab0c4a2df512c4f85c4fe1ec10ec5cdce0160129eb2ac4d41487b9d8a4a80aaf
Contents?: true
Size: 523 Bytes
Versions: 1
Compression:
Stored size: 523 Bytes
Contents
module Rad module AbstractRoutingHelper protected def special_url key return nil unless (key.is_a?(Symbol) or key.is_a?(String)) if key == :back workspace.request.env["HTTP_REFERER"] || 'javascript:history.back()' elsif key == '#' '#' elsif key !~ /^[\/0-9_a-z]+$/i key else nil end end def keep_flash! rad[:flash].keep! if rad.include? :flash end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rad_core-0.0.13 | lib/rad/integration/router/abstract_routing_helper.rb |