active_scaffold-sequel 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -172,7 +172,9 @@ module ActiveScaffold::Actions
172
172
  model = params[:record][sti_key].constantize
173
173
  end
174
174
  end
175
- model.new(build_options)
175
+ m = model.new
176
+ build_options.each {|k,v| m.send("#{k}=", v)}
177
+ m
176
178
  end
177
179
 
178
180
  private
@@ -2,7 +2,7 @@ module ActiveScaffold
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 6
5
- PATCH = 1
5
+ PATCH = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold-sequel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-09 00:00:00.000000000 Z
12
+ date: 2013-08-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda