Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Add comment.version to the API
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsmalley committed Feb 6, 2009
1 parent 6b760bf commit ae30a42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/comment.rb
Expand Up @@ -28,14 +28,14 @@ def fixed_url
end

def to_json(options = {})
default_only = ["body", "name", "url", "works_for_me"]
default_only = ["body", "name", "url", "works_for_me", "version"]
options[:only] = (options[:only] || []) + default_only
options[:include] = {:platform => {:only => :name}}
super(options)
end

def to_xml(options = {})
default_only = ["body", "name", "url", "works_for_me"]
default_only = ["body", "name", "url", "works_for_me", "version"]
options[:only] = (options[:only] || []) + default_only
options[:include] = {:platform => {:only => :name}}
super(options)
Expand Down

0 comments on commit ae30a42

Please sign in to comment.