Skip to content

Instantly share code, notes, and snippets.

@wjessop
Created January 13, 2011 02:09
Show Gist options
  • Save wjessop/777281 to your computer and use it in GitHub Desktop.
Save wjessop/777281 to your computer and use it in GitHub Desktop.
class Status < ActiveRecord::Base
# Is there a build in way of doing this?
alias :original_to_json :to_json
def to_json(options = {})
options[:except] = :created_at
original_to_json(options)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment