This answer is 5 years old and wasn't all that specific.
I just lost a couple of hours in development. My code worked after a server restart. I can't be sure, but I think it is because of a change I made to a scoped validation in a model:
validates :name, presence: true , uniqueness: {scope: :institution_id}
This year old answer doesn't seem to apply to my situation. In particular, this rule does not seem to have held for me:
"The general rule of thumb here is making changes to anything outside of app/ or config/routes.rb will require a restart."
Is there some other rule to consider? While developing, I'd like to avoid restarting the server as much as possible.
I suppose one valid answer could be this answer is still correct. If it gets upvoted enough, I'll assume that it remains accurate and that my adventure with debugging-that-was-fixed-with-a-server-restart was some other-yet-to-be-defined issue.
ADDENDUM:
I am using:
- Mac OS 10.9.5
- Rails 4.1.5
- Spring 1.1.3
Server startup:
[2014-10-12 09:29:29] INFO WEBrick 1.3.1
[2014-10-12 09:29:29] INFO ruby 2.1.2 (2014-05-08) [x86_64-darwin13.0]
[2014-10-12 09:29:29] INFO WEBrick::HTTPServer#start: pid=9366 port=3000