simple_workflow 0.0.5 → 0.0.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.
- data/History.txt +7 -0
- data/lib/simple_workflow/controller.rb +2 -2
- data/lib/simple_workflow/helper.rb +2 -1
- data/lib/simple_workflow/version.rb +1 -1
- metadata +4 -4
data/History.txt
CHANGED
@@ -17,10 +17,10 @@ module SimpleWorkflow::Controller
|
|
17
17
|
def store_detour(options, post = false)
|
18
18
|
options[:request_method] = :post if post
|
19
19
|
if session[:detours] && session[:detours].last == options
|
20
|
-
logger.debug "duplicate detour: #{options}"
|
20
|
+
logger.debug "duplicate detour: #{options.inspect}"
|
21
21
|
return
|
22
22
|
end
|
23
|
-
logger.debug "adding detour: #{options}"
|
23
|
+
logger.debug "adding detour: #{options.inspect}"
|
24
24
|
session[:detours] ||= []
|
25
25
|
session[:detours] << options
|
26
26
|
end
|
@@ -52,7 +52,8 @@ module SimpleWorkflow::Helper
|
|
52
52
|
def back_or_link_to(title, options = nil)
|
53
53
|
if session[:detours]
|
54
54
|
options = {:return_from_detour => true}.update(session[:detours].last)
|
55
|
-
|
55
|
+
options[:id] ||= nil
|
56
|
+
logger.debug "linked return from detour: #{options.inspect}"
|
56
57
|
end
|
57
58
|
link_to(title, options) if options
|
58
59
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_workflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Uwe Kubosch
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-02-08 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rails
|