Sha256: 12f28a57972a6ec443acc6874a562e703c1a404000a3b8a67c2ce05c932a263a
Contents?: true
Size: 388 Bytes
Versions: 3
Compression:
Stored size: 388 Bytes
Contents
module Hyperstack module Internal module Router class IsomorphicMethods include Hyperstack::Component::IsomorphicHelpers isomorphic_method(:request_fullpath) do |f| f.when_on_client { `window.location.pathname` } f.send_to_server f.when_on_server { f.context.controller.request.fullpath } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems