Skip to content

Instantly share code, notes, and snippets.

@parndt
Created December 12, 2012 21:31
Show Gist options
  • Save parndt/4271812 to your computer and use it in GitHub Desktop.
Save parndt/4271812 to your computer and use it in GitHub Desktop.
# parts is a has_many relationship on Refinery::Page
ActiveRecord::Relation === Refinery::Page.first.parts.where(:title => 'foo')
#=> true
ActiveRecord::Relation === Refinery::Page.first.parts
#=> false
# wat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment