Skip to content

Instantly share code, notes, and snippets.

@croaky
Created November 28, 2008 21:53
Show Gist options
  • Save croaky/30105 to your computer and use it in GitHub Desktop.
Save croaky/30105 to your computer and use it in GitHub Desktop.
A convention for ordering stuff in your ActiveRecord models
class Example < ActiveRecord::Base
# includes: mixed in behavior
# properties: attributes, associations
# lifecycle: validations, callbacks
# instance methods
# class methods: self.method, named_scopes
# non-public interface: protected helpers
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment