Created
June 11, 2012 15:10
-
-
Save whistler/2910567 to your computer and use it in GitHub Desktop.
Dont send timestamps of Rails records to browser
This file contains 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 ActiveRecord::Base | |
def as_json(options={}) | |
super(:except => [:created_at, :updated_at]) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment