1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00
thoughtbot--factory_bot/lib/factory_girl/attribute
Joshua Clayton e9c23dc817 Use instance_exec passing self as an argument for dynamic attributes
Calling `block.call(self)` means any implied scope of block evaluation
goes out the window when an arity of 1 is used. This change uses
`instance_exec`, passing along self as the argument for the block
variable, meaning that the block is still invoked within the context of
the FactoryGirl::Evaluator while allowing the variable to have access to
the evaluator.

Closes #529
2013-06-07 10:42:50 -04:00
..
association.rb Allow factories with traits to be used in associations 2012-06-29 11:06:08 -04:00
dynamic.rb Use instance_exec passing self as an argument for dynamic attributes 2013-06-07 10:42:50 -04:00
sequence.rb Clean up documentation 2012-05-05 02:31:31 -04:00
static.rb Clean up documentation 2012-05-05 02:31:31 -04:00