rmtools 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rmtools/conversions/json.rb +6 -1
- data/lib/rmtools/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: ba8d5846022ccf031d60062e4060c98a7990d4c0
|
4
|
+
data.tar.gz: 72f136789d589bdc3f874f9f732805f98c1cf906
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c5e969ef2e81d460003af525aea0e0db301141a4549dd05260d32586d480b811c17de0945a9e94c09d11128e34f4e675618b49ec240de1fb1fb77d01754a39e
|
7
|
+
data.tar.gz: a3e5360e8e737bbf00671e91d68a6bf3b4efbf8bff0f4f1b791c45ecba5aa752ac4ef863651e36d56960f0205890f07658954dd36a906572ab870547dd7e981c
|
@@ -1,5 +1,10 @@
|
|
1
1
|
# Overwrites slow ActiveSupport ActiveSupport::JSON.encode by faster Yajl or JSON libraries
|
2
|
-
|
2
|
+
if Rails.version < '4'
|
3
|
+
require 'active_support/core_ext/object/to_json'
|
4
|
+
else
|
5
|
+
require 'active_support/core_ext/object/json'
|
6
|
+
end
|
7
|
+
|
3
8
|
begin
|
4
9
|
require 'yajl'
|
5
10
|
|
data/lib/rmtools/version.rb
CHANGED