Skip to content

Instantly share code, notes, and snippets.

@unsay
Created March 16, 2012 01:21
Show Gist options
  • Save unsay/2048048 to your computer and use it in GitHub Desktop.
Save unsay/2048048 to your computer and use it in GitHub Desktop.
ActiveRecord Organization
class ClassName < ActiveRecord::Base
#--
# constants
#++
#--
# requires
#++
#--
# includes
#++
#--
# attr
#++
#--
# extra capabilities
#++
#--
# belongs_to
#++
#--
# has_one
#++
#--
# has_many
#++
#--
# accepts_nested_attributes_for
#++
#--
# validations
#++
#--
# callbacks
#++
#--
# scopes
#++
#--
# other definition such as alias_method
#++
#--
# public class methods
#++
#--
# public instance methods
#++
private
#--
# private class methods
#++
#--
# private instance methods
#++
protected
#--
# protected class methods
#++
#--
# protected instance methods
#++
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment