Skip to content

Instantly share code, notes, and snippets.

@wlangstroth
Created January 13, 2014 16:39
Show Gist options
  • 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