Sha256: c1504d91cec643e367e2c8fdabcfafbb0ac19144408527a3182ac5901b6ec992

Contents?: true

Size: 487 Bytes

Versions: 11

Compression:

Stored size: 487 Bytes

Contents

# module ActionDispatch
#   module Routing
#     class Mapper
#       class Mapping

#         def route_uses_slash_and_no_hash?
#           @options[:to].is_a?(String) &&
#             @options[:to].index('#').nil? &&
#             @options[:to].index('/')
#         end

#         def to
#           if route_uses_slash_and_no_hash?
#             @options[:to].sub('/','#')
#           else
#             @options[:to]
#           end
#         end
#       end
#     end
#   end
# end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ez-1.3.0 lib/ez/mapper.rb
ez-1.2.0 lib/ez/mapper.rb
ez-1.1.3 lib/ez/mapper.rb
ez-1.1.2 lib/ez/mapper.rb
ez-1.1.1 lib/ez/mapper.rb
ez-1.1.0 lib/ez/mapper.rb
ez-1.0.0 lib/ez/mapper.rb
ez-0.9.9 lib/ez/mapper.rb
ez-0.9.7 lib/ez/mapper.rb
ez-0.9.6 lib/ez/mapper.rb
ez-0.9.5 lib/ez/mapper.rb