-
-
Save smathy/db81bba57b2147889447 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[76] pry(main)> class FooBar < ActiveRecord::Base | |
[76] pry(main)* scope :broken, -> { "UH OH" } | |
[76] pry(main)* end | |
=> :broken | |
[77] pry(main)> FooBar.broken.where name: "NOPE!" | |
NoMethodError: undefined method `where' for "UH OH":String | |
from (pry):65:in `__pry__' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment