nakajima-fixjour 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ module Fixjour
3
3
  # Defines the new_* method
4
4
  def define_new(klass, &block)
5
5
  define_method("new_#{name_for(klass)}") do |*args|
6
- Generator.new(klass, block).call(self, args.extract_options!)
6
+ Generator.new(klass, block).call(self, args.extract_options!.symbolize_keys!)
7
7
  end
8
8
  end
9
9
 
@@ -20,6 +20,7 @@ module Fixjour
20
20
  def new(defaults={})
21
21
  attrs = defaults.merge(@overrides)
22
22
  accessible, inaccessible = partition(attrs)
23
+
23
24
  returning @klass.new(accessible) do |instance|
24
25
  inaccessible.each do |key,val|
25
26
  instance.send("#{key}=", val)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nakajima-fixjour
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Nakajima