Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frameworks/Ruby/sinatra-sequel/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ GEM
base64 (0.2.0)
bigdecimal (3.1.8)
iodine (0.7.58)
json (2.8.2)
json (2.9.1)
kgio (2.11.4)
mustermann (3.0.3)
ruby2_keywords (~> 0.0.1)
Expand Down
2 changes: 1 addition & 1 deletion frameworks/Ruby/sinatra-sequel/hello_world.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def bounded_queries

def json(data)
content_type :json
JSON.fast_generate(data)
data.to_json
end

# Return a random number between 1 and MAX_PK
Expand Down
2 changes: 1 addition & 1 deletion frameworks/Ruby/sinatra/hello_world.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def bounded_queries

def json(data)
content_type :json
JSON.fast_generate(data)
data.to_json
end

# Return a random number between 1 and MAX_PK
Expand Down
Loading