module FixtureFarm::ControllerHook

Private Instance Methods

record_new_fixtures(&block) click to toggle source
# File lib/fixture_farm/controller_hook.rb, line 15
def record_new_fixtures(&block)
  fixture_recorder = FixtureRecorder.resume_recording_session

  fixture_recorder.record_new_fixtures do
    block.call
  end
ensure
  fixture_recorder.update_recording_session
end
record_new_fixtures?() click to toggle source
# File lib/fixture_farm/controller_hook.rb, line 25
def record_new_fixtures?
  FixtureRecorder.recording_session_in_progress?
end