rails-forward_compatible_controller_tests 2.3.1 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85e6930e64c6444606585111e29e1aad38521760
|
4
|
+
data.tar.gz: 62b5815dae3600c17d2d99839009907ce04f87df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79f78351a8b03ddf19f2ea260966c7c899d926ddf043440e34b028465473e249c17ed9b130f923f0a4da9800e58240dfbe72be3ca46d04e595f6969f0dd30530
|
7
|
+
data.tar.gz: 15e97383f8958589d226d022d810213ad32005a91ff4c84fe3003b4918180a6538df3a9f3ccc7c1999f422ffa0293d09aceeace5edb75c0ba4fd12c7d5930c0e
|
@@ -54,7 +54,7 @@ module Rails
|
|
54
54
|
|
55
55
|
old_method = false
|
56
56
|
xhr = false
|
57
|
-
if
|
57
|
+
if args.size == 1
|
58
58
|
xhr = request_params.delete(:xhr)
|
59
59
|
request_format = request_params.delete(:format)
|
60
60
|
if request_params[:params].is_a?(Hash)
|
@@ -88,7 +88,10 @@ module Rails
|
|
88
88
|
raise Exception, ERROR_MESSAGE if ForwardCompatibleControllerTests.raise_exception? && old_method
|
89
89
|
ActiveSupport::Deprecation.warn(ERROR_MESSAGE) if ForwardCompatibleControllerTests.deprecated? && old_method
|
90
90
|
|
91
|
-
|
91
|
+
if request_format
|
92
|
+
request_params ||= {}
|
93
|
+
request_params[:format] = request_format
|
94
|
+
end
|
92
95
|
|
93
96
|
if xhr
|
94
97
|
ForwardCompatibleControllerTests.send(:with_ignore) do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-forward_compatible_controller_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chad Shaffer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|