You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why is method_missing overwritten on ActiveRecord::Base?
This took plenty of my time today: tracking down why dynamic finders like find_by_foo! weren't working, but find_by!(foo: ...) was working. Here's a debugging session that tracked it down:
Why is method_missing overwritten on ActiveRecord::Base?
This took plenty of my time today: tracking down why dynamic finders like find_by_foo! weren't working, but find_by!(foo: ...) was working. Here's a debugging session that tracked it down:
https://gist.github.com/smtlaissezfaire/1669e7ddc66773c3a95794ce41b29d49
This happened when I ran the following:
rake db:drop db:create db:migrate db:seed
Strangely enough it didn't happen when I ran seeds alone:
rake db:seed
I guess the annotate code wasn't loaded in the second example, which is why I didn't run into it.
The text was updated successfully, but these errors were encountered: