backtracker 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/store_path.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MTc0OWQxZjE0ZTQ2YjY3NGEyYjRhOGFiMzE3YjZhYjk2ODU4NGI2Yg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
M2E3Mjg5ZGM4ZTM3NzU0NWExMzk1YmI1MmVkMmVhZGEyNzY1MGYxZg==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NDgwYmU1OWJlODc0NGYzNDRhOWM4OGZmMWYwZTEzMjdjYTdkOWVhZjhkMzI2
|
|
10
|
+
Mzg5NWZiYzRmZDM4ZGY5YmE5Yzg4Y2NhODEzMmQwMmRiMjQyZTI4MjAxNzI0
|
|
11
|
+
NTcxNTVmN2Y3MDdmMDFhYTc1YTYyYmY5MTg4MGQxOTQwNzRiNGU=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZDQ3NmIxMDNhMzg0ODUyNmE1MDI5ZGIzY2UzZTk3MDkwM2Y1OTJiMGNiZDE4
|
|
14
|
+
NjQ2MTUyYTBmMmY3N2QwZmY4MjM2YzRiY2E5YzRlY2U1NDZlZmE2OTJiODBj
|
|
15
|
+
YjA1ZDM1ZGY4YmNjYzYwZGM0YjczYjUyNDBkM2I4NjYyZWVhNjU=
|
data/lib/store_path.rb
CHANGED
|
@@ -7,19 +7,19 @@ module StorePath
|
|
|
7
7
|
if args[:path]
|
|
8
8
|
args[:path] = args[:path] + "/" if args[:path][-1] != "/"
|
|
9
9
|
args[:path] = args[:path].insert( 0, "/" ) if args[:path][0] != "/"
|
|
10
|
-
session[:previous_path]
|
|
10
|
+
session[:previous_path] = args[:path]
|
|
11
11
|
elsif args[:controller] and args[:action]
|
|
12
|
-
session[:
|
|
13
|
-
session[:
|
|
12
|
+
session[:previous_controller] = args[:controller]
|
|
13
|
+
session[:previous_action] = args[:action]
|
|
14
14
|
end
|
|
15
15
|
end
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def restore_previous_path
|
|
19
|
-
if
|
|
20
|
-
redirect_to session[:previous_path]
|
|
19
|
+
if session[:previous_path]
|
|
20
|
+
redirect_to session[:previous_path]
|
|
21
21
|
else
|
|
22
|
-
redirect_to :controller => session[:
|
|
22
|
+
redirect_to :controller => session[:previous_controller], :action => session[:previous_action]
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
|