Last active
January 7, 2016 18:06
-
-
Save efwe/fb0188666fc6228b13e2 to your computer and use it in GitHub Desktop.
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 coverage | |
points = TrackPoint.mongo_client[:coverage].find.first | |
respond_to do |format| | |
format.json { render :json => points, :content_type => 'application/json' } | |
format.msgpack { send_data MessagePack.pack(points), :type => 'application/msgpack', :disposition => 'inline' } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment