forked from thoughtbot/factory_bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes thoughtbot#1309 It has come up several times over the years that folks want direct access to the evaluator instance, in most cases to build up more complex networks of associations. Some folks are already doing this with the less public `@instance` instance variable. Given that this is such a minimal change, and it makes the library more flexible for these more complex use cases, this commit adds an `attr_reader` for the evaluator instance. Now folks can reference it without reaching into the private api. Documentation to follow as part of thoughtbot#1268
- Loading branch information
1 parent
5c071d4
commit ebc4cd5
Showing
2 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters