mrujs_rails 0.1.0.pre.beta.12 → 0.1.0.pre.beta.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mrujs_rails/redirection.rb +2 -2
- data/lib/mrujs_rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b3af2626c85259fabe940acf9411c6bd5a1189eda6b1d444f05298d3eeb5e3f
|
4
|
+
data.tar.gz: c3c32f6dd8c1437d1106d1ad41d7a440dd32730e69b1b6512a254d8543cf2cf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a039a5a14c7f44c5a0e5f5dfd15c013830749848aed32447c548dd0648893b8f45dfd1c1262f76cfd060a898f65ce0664627dd4d3f1c9f064ac437c843d2445
|
7
|
+
data.tar.gz: f30adacf71337f8599b7544bf3f8df76e88672d2b827d107165e99415a08293530c67fbe705bbe9e0b59fd94bfa6bc08dff2ae611a4903064c9eca28019780db
|
@@ -24,8 +24,8 @@ module MrujsRails
|
|
24
24
|
action = action.to_s
|
25
25
|
visit_action = action == "advance" ? action : "replace"
|
26
26
|
|
27
|
-
response.content_type =
|
28
|
-
|
27
|
+
response.content_type = Mime[:turbolinks]
|
28
|
+
response.headers["X-Xhr-Redirect"] = location
|
29
29
|
response.headers["TURBOLINKS-REDIRECT-ACTION"] = visit_action
|
30
30
|
response.headers["TURBOLINKS-REDIRECT-LOCATION"] = location
|
31
31
|
end
|
data/lib/mrujs_rails/version.rb
CHANGED