lib/rehearsal.rb in rehearsal-1.0.0 vs lib/rehearsal.rb in rehearsal-1.0.1
- old
+ new
@@ -42,8 +42,9 @@
username == self.username && password == self.password
end if rehearsing?
end
def rehearsing?
+ return unless Rehearsal.config.enabled
Rails.env.to_sym == Rehearsal.config.env
end
end