Sha256: 02b63431f1001dec18ffe4dcbcb0e53dddd6cb030e50be5df564c54026102bac
Contents?: true
Size: 492 Bytes
Versions: 24
Compression:
Stored size: 492 Bytes
Contents
module Rad::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 =~ /^http:\/\// # /^[\/0-9_a-z]+$/i # key else nil end end def keep_flash! rad[:flash].keep! if rad.include? :flash end end
Version data entries
24 entries across 24 versions & 1 rubygems