Sha256: fb2b52b075c6f87660a8131aaa08417ccbcb3534c8fcf9f9f32d33baeef43696
Contents?: true
Size: 304 Bytes
Versions: 2
Compression:
Stored size: 304 Bytes
Contents
module React module Router class WindowLocation include React::IsomorphicHelpers before_first_mount do |context| context.eval("window.reactrb_router_static_location = '#{context.controller.request.path}?#{context.controller.request.query_string}'") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reactrb-router-0.8.2 | lib/reactrb-router/window_location.rb |
reactrb-router-0.8.1 | lib/reactrb-router/window_location.rb |