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.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/store_path.rb +6 -6
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDE0YjdhMGJlZTU4MjdlYjcxNzJmMWE0ZDAwYWVmOWYwNWMyYTZiYw==
4
+ MTc0OWQxZjE0ZTQ2YjY3NGEyYjRhOGFiMzE3YjZhYjk2ODU4NGI2Yg==
5
5
  data.tar.gz: !binary |-
6
- YzRkNDJiZDA1OWU5ZTE0YjIxZmVhMDE4Y2U3MzNmNzk3NDI3MDg4Yw==
6
+ M2E3Mjg5ZGM4ZTM3NzU0NWExMzk1YmI1MmVkMmVhZGEyNzY1MGYxZg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NGFiMGVhNTQ5Nzk5ZTlhNGExNWI2OTc3YmU5MGVmZjcyYTNlNTY4NDRlZjQz
10
- ZjM0YTFlYmRjODIyYzUyOWFhYzM3ODAxNGY1NjE5ZjI5ZTgyNjE2YTZhNDU2
11
- OWMxMmU2ZjcyMWZhNjE2OTQ0YzRjNjYwZTFhMTJhNjQxNzYwY2Q=
9
+ NDgwYmU1OWJlODc0NGYzNDRhOWM4OGZmMWYwZTEzMjdjYTdkOWVhZjhkMzI2
10
+ Mzg5NWZiYzRmZDM4ZGY5YmE5Yzg4Y2NhODEzMmQwMmRiMjQyZTI4MjAxNzI0
11
+ NTcxNTVmN2Y3MDdmMDFhYTc1YTYyYmY5MTg4MGQxOTQwNzRiNGU=
12
12
  data.tar.gz: !binary |-
13
- YTcxYjY3M2NlZDM0YmVhNDAwZGRhMTQyMmJjNWUyZThjNTQ5OWJmODc1ZTFh
14
- NmVkYzQyYTAyZDNkOWFjNjJjMmFmMzVlNTliZjI4MTI4ZDllYzhlZWU2NjY0
15
- NjcwNDY1MjRiZDQ5ZGE5NzRkNDg1MWU0N2M1NGE5YmViYWViNmI=
13
+ ZDQ3NmIxMDNhMzg0ODUyNmE1MDI5ZGIzY2UzZTk3MDkwM2Y1OTJiMGNiZDE4
14
+ NjQ2MTUyYTBmMmY3N2QwZmY4MjM2YzRiY2E5YzRlY2U1NDZlZmE2OTJiODBj
15
+ YjA1ZDM1ZGY4YmNjYzYwZGM0YjczYjUyNDBkM2I4NjYyZWVhNjU=
@@ -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][:path] = args[:path]
10
+ session[:previous_path] = args[:path]
11
11
  elsif args[:controller] and args[:action]
12
- session[:previous_path][:controller] = args[:controller].to_sym
13
- session[:previous_path][:action] = args[:action].to_sym
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 !session[:previous_path].is_a? Hash
20
- redirect_to session[:previous_path][:path]
19
+ if session[:previous_path]
20
+ redirect_to session[:previous_path]
21
21
  else
22
- redirect_to :controller => session[:previous_path][:controller], :action => session[:previous_path][:action]
22
+ redirect_to :controller => session[:previous_controller], :action => session[:previous_action]
23
23
  end
24
24
  end
25
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backtracker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Pellegrini