Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make form the default format

  • Loading branch information...
commit a8f5f3e08d664c8e5fb7cfdb19bbcd43c562e7ac 1 parent 24fe019
@maccman authored
Showing with 1 addition and 14 deletions.
  1. +0 −13 lib/nestful/formats/blank_format.rb
  2. +1 −1  lib/nestful/request.rb
View
13 lib/nestful/formats/blank_format.rb
@@ -1,13 +0,0 @@
-module Nestful
- module Formats
- class BlankFormat < Format
- def encode(params, options = nil)
- raise "Choose an encoding format, such as :form"
- end
-
- def decode(body)
- body
- end
- end
- end
-end
View
2  lib/nestful/request.rb
@@ -20,7 +20,7 @@ def initialize(url, options = {})
send(method, val) if respond_to?(method)
}
self.method ||= :get
- self.format ||= :blank
+ self.format ||= :form
self.headers ||= {}
self.params ||= {}
self.body ||= ''
Please sign in to comment.
Something went wrong with that request. Please try again.