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
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
..
factory_girl Use instance_exec passing self as an argument for dynamic attributes 2013-06-07 10:42:50 -04:00
factory_girl.rb Add global callbacks 2013-02-08 11:24:35 -05:00