Created
January 13, 2011 02:09
-
-
Save wjessop/777281 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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