- requires HTTP Basic authorization
user_email-- users email required
| 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 + "’" : owner + "’s" | |
| end |