Created
May 3, 2013 23:30
-
-
Save eriknomitch/5515113 to your computer and use it in GitHub Desktop.
as_json
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
def as_json(options = {}) | |
json = super(options) | |
[:follow_status, :other_thing].each do |attr| | |
json[attr.to_s] = options[attr].send(attr, self) if options[attr] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment