vitalish-factory_girl 1.2.9 → 1.2.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/factory_girl/factory.rb +6 -0
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.9
1
+ 1.2.10
@@ -23,6 +23,7 @@ class Factory
23
23
 
24
24
  attr_reader :factory_name #:nodoc:
25
25
  attr_reader :attributes #:nodoc:
26
+ attr_reader :params #:nodoc:
26
27
 
27
28
  # Defines a new factory that can be used by the build strategies (create and
28
29
  # build) to build new objects.
@@ -81,6 +82,11 @@ class Factory
81
82
  @attributes << attribute.clone
82
83
  end
83
84
  end
85
+ parent.params.each do |param|
86
+ unless @params.include?(param)
87
+ @params << param
88
+ end
89
+ end
84
90
  end
85
91
 
86
92
  # Adds an attribute that should be assigned on generated instances for this
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vitalish-factory_girl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 9
10
- version: 1.2.9
9
+ - 10
10
+ version: 1.2.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joe Ferris
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-12-03 00:00:00 +02:00
19
+ date: 2011-01-13 00:00:00 +02:00
20
20
  default_executable:
21
21
  dependencies: []
22
22