Skip to content

Commit

Permalink
irbrc method to enable factory_bot
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlyerror committed Feb 19, 2021
1 parent 327fbcd commit 96f6cb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .irbrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
if Rails.env == "development" || Rails.env == "test"
include FactoryBot::Syntax::Methods
end
def factory_bot
self.include FactoryBot::Syntax::Methods
end

0 comments on commit 96f6cb4

Please sign in to comment.