resty_prefill 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. data/lib/resty_prefill.rb +2 -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.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[:k] = v
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.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: -618312344268099606
91
+ hash: 4507988459510077427
92
92
  required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  none: false
94
94
  requirements: