Sha256: 9084eb94d2ecefb8589b99727130b841e176c44ceb133355f67689cbfdd45a33
Contents?: true
Size: 492 Bytes
Versions: 3
Compression:
Stored size: 492 Bytes
Contents
module Crystal module RoutingHelper inject :router => :router delegate :url_for, :persist_params, :dont_persist_params, :to => :router def default_path options = {} url_for_path config.default_path!, options.merge(:url_root => false) end def return_to_path options = {} do_not_persist_params do url_for_path params[:_return_to] || session[:return_to] || config.default_path!, options.merge(:url_root => false) end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
crystal-0.0.13 | lib/crystal/router/routing_helper.rb |
crystal-0.0.12 | lib/crystal/router/routing_helper.rb |
crystal_ext-0.0.11 | lib/crystal/router/routing_helper.rb |