rails-js-routes 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/javascripts/routes.js +4 -4
- data/lib/rails/js/routes/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5574c0e71370f11c928cc7c448b1a987b526a01c
|
4
|
+
data.tar.gz: a1a8cb5d995f57281003b9501e3777d458704730
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cc7ee81ebed4709086ae50a9b6e44dd1fb097d4060f28f12223ce7f570b6224aa13af8a3a088422d7525aa532871d2579f3576089c2dd0fe3f8f6136e6e663f
|
7
|
+
data.tar.gz: bdc43a65a75f52c7868528d619dcbb2c69e101f0288b299a84146cce58509651631ed3bc0b828dc7b507cd70cd30d15c9b35dd36b3616b32b125b227fbcc4d67
|
data/Gemfile.lock
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
isDOMElement;
|
13
13
|
|
14
14
|
/*
|
15
|
-
* Helper function, returns true if
|
15
|
+
* Helper function, returns true if el is a DOMElement
|
16
16
|
*/
|
17
17
|
function isDOMElement(el) {
|
18
18
|
return (
|
@@ -143,9 +143,9 @@
|
|
143
143
|
* Set config if link is passed as first argument
|
144
144
|
*/
|
145
145
|
if (arguments.length == 1 && isDOMElement(arguments[0])) {
|
146
|
-
this.config.action = arguments[0].
|
147
|
-
this.config.controller = arguments[0].
|
148
|
-
this.config.namespace = arguments[0].
|
146
|
+
this.config.action = arguments[0].getAttribute('data-action');
|
147
|
+
this.config.controller = arguments[0].getAttribute('data-controller');
|
148
|
+
this.config.namespace = arguments[0].getAttribute('data-namespace');
|
149
149
|
} else if (arguments[0] === false) {
|
150
150
|
/*
|
151
151
|
* Break if false if passed as first argument
|