flame 3.3.1 → 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flame/dispatcher.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: 961b6996b8d6f921a727f75d9a3986b2d27c87ff
|
4
|
+
data.tar.gz: 17df2b8f0253a510c11daaf1bbab63f85c99e739
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73b42ef28db03c658a25d6c92bd9356ff50a7ae82e610ec27cd9168eede687117b6bfe52410d2fba433b0300434c124bd5c3393cdb9bfcab454212d0a802044e
|
7
|
+
data.tar.gz: 0e26def8d075900c4784bcdf5fb131111f1211dadc7c02cc1be351e3e4e00cc598d9d066232fd3ab967ebbbe6cf718594bfd35ff21e255535a05fd2ed813f41a
|
data/lib/flame/dispatcher.rb
CHANGED
@@ -42,7 +42,7 @@ module Flame
|
|
42
42
|
@app.config
|
43
43
|
end
|
44
44
|
|
45
|
-
def path_to(ctrl, action, args = {})
|
45
|
+
def path_to(ctrl, action = :index, args = {})
|
46
46
|
route = @app.class.router.find_route(controller: ctrl, action: action)
|
47
47
|
fail RouteNotFoundError.new(ctrl, action) unless route
|
48
48
|
path = route.assign_arguments(args)
|