flammarion_rails 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flammarion/engraving.rb +2 -5
- data/lib/flammarion_rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e17f91f8eb5639a53a6a9f03642a49ccbcfe0a2
|
4
|
+
data.tar.gz: 1f85752e952ca289b0a3ccd2db44ee2fe08bb50d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 636cdec1da26ec512246d0480a601590d6144d76d69b2786f4ffccaa0821df837515eccdc0992b727e30be8bfb010c7a88e9de00b6c40d259ff3ed2773f82793
|
7
|
+
data.tar.gz: 1c00c217a28ed7c990d9048da02d94783c0bbfb85580d6a430a5390d937a68d25c1630f9a6deb623893c92dbf3823245872f179876f8465a846312aa5194e2d1
|
data/lib/flammarion/engraving.rb
CHANGED
@@ -66,15 +66,12 @@ module Flammarion
|
|
66
66
|
url = params.delete(:url)
|
67
67
|
uri = URI.parse(url)
|
68
68
|
query_params = Rack::Utils.parse_nested_query(uri.query)
|
69
|
-
request_params = {}
|
70
69
|
|
70
|
+
request_params = {}
|
71
71
|
if params.key?(:form)
|
72
|
-
params[:method] = 'post'
|
73
72
|
request_params = Rack::Utils.parse_nested_query(params.delete(:form))
|
74
73
|
request_params[params.delete(:button)] = ''
|
75
|
-
|
76
|
-
if params.key?(:_method)
|
77
|
-
params[:method] = params[:_method]
|
74
|
+
params[:method] = request_params[:_method] || 'post'
|
78
75
|
end
|
79
76
|
http_method = (params[:method] ||= :get).to_s.upcase!
|
80
77
|
|