Skip to content

Instantly share code, notes, and snippets.

@smathy
Created February 25, 2015 05:04
Show Gist options
  • Save smathy/db81bba57b2147889447 to your computer and use it in GitHub Desktop.
Save smathy/db81bba57b2147889447 to your computer and use it in GitHub Desktop.
[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