simple_workflow 0.2.0 → 0.2.1
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/README.rdoc +3 -1
- data/lib/simple_workflow/controller.rb +3 -1
- data/lib/simple_workflow/version.rb +1 -1
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
= simple_workflow
|
2
2
|
|
3
3
|
* http://github.com/donv/simple_workflow
|
4
|
+
* http://rubydoc.info/gems/simple_workflow
|
5
|
+
* https://rubygems.org/gems/simple_workflow
|
4
6
|
|
5
7
|
== DESCRIPTION:
|
6
8
|
|
7
|
-
|
9
|
+
Extension to Rails to allow detours with returns.
|
8
10
|
|
9
11
|
== FEATURES/PROBLEMS:
|
10
12
|
|
@@ -1,4 +1,6 @@
|
|
1
1
|
module SimpleWorkflow::Controller
|
2
|
+
##
|
3
|
+
# Like ActionController::Base#redirect_to, but stores where we come from, enabling returning here later.
|
2
4
|
def detour_to(options)
|
3
5
|
store_detour(params)
|
4
6
|
redirect_to(options)
|
@@ -43,7 +45,7 @@ module SimpleWorkflow::Controller
|
|
43
45
|
else
|
44
46
|
redirect_to detour
|
45
47
|
end
|
46
|
-
|
48
|
+
true
|
47
49
|
end
|
48
50
|
|
49
51
|
def back_or_redirect_to(*options)
|
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: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
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-03-
|
18
|
+
date: 2012-03-07 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rails
|