Skip to content

Instantly share code, notes, and snippets.

@beydogan
Created October 30, 2015 09:35
Show Gist options
  • Save beydogan/8d6e01b68dcda0bb4d07 to your computer and use it in GitHub Desktop.
Save beydogan/8d6e01b68dcda0bb4d07 to your computer and use it in GitHub Desktop.
def self.some_method
users = User.some_scope
users.each do |user|
user.foo
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment