Skip to content

Instantly share code, notes, and snippets.

@wlangstroth
Created January 13, 2014 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wlangstroth/8403415 to your computer and use it in GitHub Desktop.
Save wlangstroth/8403415 to your computer and use it in GitHub Desktop.
class Thing < ActiveRecord::Base
# == Constants ==========================================================
CONSTANTS = %w[ thing1 thing2 ]
# == Attributes =========================================================
attr_accessor :attribute
# == Extensions =========================================================
# e.g. Paperclip
has_attached_file :logo,
:styles => {
:tiny => '16x16>',
:medium => "70x70>"
}
# == Relationships ======================================================
# == Validations ========================================================
# == Callbacks ==========================================================
# == Scopes =============================================================
# == Class Methods ======================================================
# == Instance methods ===================================================
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment