Skip to content

Instantly share code, notes, and snippets.

@amerine
Created January 11, 2010 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amerine/273917 to your computer and use it in GitHub Desktop.
Save amerine/273917 to your computer and use it in GitHub Desktop.
class Project < ActiveRecord::Base
alias :old_read_attribute :read_attribute
def read_attribute(attr)
old_read_attribute(attr) or 'none'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment