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

Version Path
rad_core-0.2.6 lib/rad/web/_router/abstract_routing_helper.rb
rad_core-0.2.5 lib/rad/web/_router/abstract_routing_helper.rb
rad_core-0.2.4 lib/rad/web/_router/abstract_routing_helper.rb
rad_core-0.2.3 lib/rad/web/_router/abstract_routing_helper.rb
rad_core-0.2.2 lib/rad/web/_router/abstract_routing_helper.rb
rad_core-0.2.1 lib/rad/web/_router/abstract_routing_helper.rb
rad_core-0.2.0 lib/rad/web/_router/abstract_routing_helper.rb
rad_core-0.0.30 lib/rad/web/_router/abstract_routing_helper.rb
rad_core-0.0.29 lib/rad/web/_router/abstract_routing_helper.rb
rad_core-0.0.28 lib/rad/web/_router/abstract_routing_helper.rb
rad_core-0.0.27 lib/rad/web/_router/abstract_routing_helper.rb
rad_core-0.0.26 lib/rad/web/_router/abstract_routing_helper.rb
rad_core-0.0.25 lib/rad/core_web/_router/abstract_routing_helper.rb
rad_core-0.0.24 lib/rad/core_web/_router/abstract_routing_helper.rb
rad_core-0.0.23 lib/rad/core_web/_router/abstract_routing_helper.rb
rad_core-0.0.22 lib/rad/core_web/_router/abstract_routing_helper.rb
rad_core-0.0.21 lib/rad/core_web/_router/abstract_routing_helper.rb
rad_core-0.0.20 lib/rad/core_web/_router/abstract_routing_helper.rb
rad_core-0.0.19 lib/rad/core_web/_router/abstract_routing_helper.rb
rad_core-0.0.18 lib/rad/core_web/_router/abstract_routing_helper.rb