Sha256: e1cdae23b6a8f7a8b82206e56d0b2289ad5cfa9c404a6ba26bd308635d6d69d9
Contents?: true
Size: 291 Bytes
Versions: 14
Compression:
Stored size: 291 Bytes
Contents
module HyperRouter class IsomorphicMethods include React::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
Version data entries
14 entries across 14 versions & 1 rubygems