Created
November 28, 2008 21:53
-
-
Save croaky/30105 to your computer and use it in GitHub Desktop.
A convention for ordering stuff in your ActiveRecord models
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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