Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.