Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reduce duplication.

  • Loading branch information...
commit 76675cb76a390d11b00395716af2f66b45fc4c46 1 parent e4e99f8
@gabebw gabebw authored
Showing with 1 addition and 13 deletions.
  1. +1 −13 lib/fake_braintree/sinatra_app.rb
View
14 lib/fake_braintree/sinatra_app.rb
@@ -7,19 +7,7 @@ class SinatraApp < Sinatra::Base
set :raise_errors, true
disable :logging
- helpers do
- def gzip(content)
- ActiveSupport::Gzip.compress(content)
- end
-
- def gzipped_response(status_code, uncompressed_content)
- [status_code, { "Content-Encoding" => "gzip" }, gzip(uncompressed_content)]
- end
-
- def md5(content)
- Digest::MD5.hexdigest(content)
- end
- end
+ include Helpers
# Braintree::Customer.create
post "/merchants/:merchant_id/customers" do

0 comments on commit 76675cb

Please sign in to comment.
Something went wrong with that request. Please try again.