Skip to content

Instantly share code, notes, and snippets.

@jvnill
Created February 21, 2013 08:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jvnill/5003064 to your computer and use it in GitHub Desktop.
=> item_list = Project.limit(2).select('projects.name')
=> [#<Project name: "SEO">, #<Project name: "Site Analysis">]
>> item_list.each { |il| il.name = 'foo' }
=> [#<Project name: "foo">, #<Project name: "foo">]
>> item_list.first
=> #<Project name: "foo">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment