Skip to content

Instantly share code, notes, and snippets.

@amerine
Created January 11, 2010 01:36
Show Gist options
  • Save amerine/273915 to your computer and use it in GitHub Desktop.
Save amerine/273915 to your computer and use it in GitHub Desktop.
class Project < ActiveRecord::Base
def name
read_attribute(:name) or 'none'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment