Skip to content

Instantly share code, notes, and snippets.

View nathancarnes's full-sized avatar

Nathan Carnes nathancarnes

View GitHub Profile

API Spec

POST /api/employers/trips

  • requires HTTP Basic authorization

Attributes

  • user_email -- users email required
@nathancarnes
nathancarnes / task.rb
Last active December 14, 2015 19:48 — forked from amiel/task.rb
class Task < ActiveRecord::Base
belongs_to :project
validates_presence_of :project_id
validate do
unless project.status == 'funded'
errors.add(:base, 'Project must be funded')
end
end
.ym-button {
// defined elsewhere, sets up button styles and some such
}
.adrians-button {
.ym-button; // No ampersand, yo
background-color: @purple-as-fuck; // assuming this is a supposed to be a variable?
}
/*
* Site: Home Federal
* Date: April 2011
* Author: Carnes Media
*/
/* Import reset, utilities, and settings */
@import 'vendor/reset';
@import 'components/utilities';
@import 'components/typography';
def possessivize(owner)
owner.ends_with?('s') ? owner + "&rsquo;" : owner + "&rsquo;s"
end