Skip to content

Instantly share code, notes, and snippets.

@denysonique
Created July 19, 2011 20:03
Show Gist options
  • Save denysonique/1093567 to your computer and use it in GitHub Desktop.
Save denysonique/1093567 to your computer and use it in GitHub Desktop.
Class Book < ActiveRecord::Base
def self.by_authors(author_ids)
where(:author_id => author_ids).map{ |book|
issuer = book.issuer
issuer.foo = boo.foo
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment