swamp-rails-actions 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/swamp/rails_actions/action/routes.rb +1 -5
- 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: c7a96568e665b002d37b55b29b0636ed4a986804f576006f4ea53809989cdda7
|
4
|
+
data.tar.gz: d537477373809a22f5bc92190b2e4a44ec98b3b2efc813d4d619b34ade1623d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a41528f594c9bf7bfc9861260ab168af5e7296b48a543f105d9b27319ed360dd5ac94e741fa7031c26101fbaf9666e8238ed523868d7e43e5969e93911db30a
|
7
|
+
data.tar.gz: 4eee3e66ec9b21b803af8a706f6c488c4e7819744e8aef52957eba280ce13e8f1c385f858c46c56e74c186983221d6a87085ad240b6c40875ed7557021aad4fe
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Swamp::Action
|
4
4
|
module Routes
|
5
5
|
def router
|
6
|
-
@router ||=
|
6
|
+
@router ||= Rails.application.routes
|
7
7
|
end
|
8
8
|
|
9
9
|
def path(name, options = Hash[])
|
@@ -19,9 +19,5 @@ module Swamp::Action
|
|
19
19
|
opts[:host] = @request.host if @request
|
20
20
|
end
|
21
21
|
end
|
22
|
-
|
23
|
-
class Router
|
24
|
-
include Rails.application.routes.url_helpers
|
25
|
-
end
|
26
22
|
end
|
27
23
|
end
|