redirect-rails 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redirect/middleware.rb +1 -1
- data/lib/redirect/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: f46377411074f4d5f0324f7bff7da2916112df9993b508d81955803b2c940716
|
4
|
+
data.tar.gz: 31c05112cde8119377775e03e71215111c95392969c83f9cc2e70e9b2e34a047
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23cca88b54bc5c1af86553e0ec161cd7d8a2d53c97132152d6865dff418b1967fd64956cf9f7dcc1b87d2f526219414d71c7642b379137e92e5f86cb8ef2e249
|
7
|
+
data.tar.gz: 3245137b076b61c97321d3ce20383196ae2c51794d352a4c52eb9fe0c167c3dc4c676bf6e560a45a15b498fbfb26f274fd1e62cb731dbec62dc2c75331571c2f
|
data/lib/redirect/middleware.rb
CHANGED
@@ -16,7 +16,7 @@ module Redirect
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def match?(request_path)
|
19
|
-
return
|
19
|
+
return unless Redirect::Rails.paths
|
20
20
|
|
21
21
|
Redirect::Rails.paths.map do |path, redirect_path|
|
22
22
|
return redirect_to(ERB.new(redirect_path).result(binding)) if Regexp.new(path).match(request_path)
|