Module: FixtureFarm::Hook
- Included in:
- ActiveJobHook, ControllerHook
- Defined in:
- lib/fixture_farm/hook.rb
Instance Method Summary collapse
Instance Method Details
#record_new_fixtures(&block) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/fixture_farm/hook.rb', line 7 def record_new_fixtures(&block) fixture_recorder = FixtureRecorder.resume_recording_session fixture_recorder.record_new_fixtures { block.call } ensure fixture_recorder.update_recording_session end |