resty_prefill 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/resty_prefill.rb +2 -2
- metadata +2 -2
data/lib/resty_prefill.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module RestyPrefill
|
2
2
|
|
3
|
-
VERSION = '1.0.
|
3
|
+
VERSION = '1.0.1'
|
4
4
|
|
5
5
|
def redirect_and_prefill_for(obj)
|
6
6
|
(session[:redirect_and_prefill] ||= {})[obj.class.to_s] ||= {
|
@@ -18,7 +18,7 @@ module RestyPrefill
|
|
18
18
|
def prefill(obj)
|
19
19
|
attrs = redirect_and_prefill_for(obj)[:attrs]
|
20
20
|
attrs.each do |k,v|
|
21
|
-
obj[
|
21
|
+
obj[k] = v
|
22
22
|
end
|
23
23
|
|
24
24
|
errs = redirect_and_prefill_for(obj)[:errors]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resty_prefill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -88,7 +88,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
88
88
|
version: '0'
|
89
89
|
segments:
|
90
90
|
- 0
|
91
|
-
hash:
|
91
|
+
hash: 4507988459510077427
|
92
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
93
|
none: false
|
94
94
|
requirements:
|