wolf_core 1.0.99 → 1.0.100
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e27d104399fb8dd6a185c8fe64ac0d2ebed6392fd476de8cc8d1d55c553ae9f
|
4
|
+
data.tar.gz: 8440806df73e486706332fe16b0205d3d4d3f4a266a06d5d8c8ca885c5edd5d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 104aee192567a699c21317ab352f93d8b6c1209158ad6a5826492246418f4a4e3d77b631a2c1884ee6dba31aaaf5af969222a22181e6331c44b97954e175898d
|
7
|
+
data.tar.gz: df6d2ec2800b8d0666ded6ff244c5ade1d76c57771374359d9c54d0a8ec8f2b418036c3127bee88d15b183ecb31a0bef840518d18a03a769813ea9dd12d6b5d2
|
@@ -1,5 +1,5 @@
|
|
1
|
-
module WolfCore
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
end
|
1
|
+
# module WolfCore
|
2
|
+
# class ApplicationSerializer < ActiveModel::Serializer
|
3
|
+
# include WolfCore::Serializable
|
4
|
+
# end
|
5
|
+
# end
|
@@ -1,17 +1,17 @@
|
|
1
|
-
module WolfCore
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
# module WolfCore
|
2
|
+
# module Serializable
|
3
|
+
# def serialize_with(serializer, entity, options = {})
|
4
|
+
# serializer.new(entity, options).as_json.with_indifferent_access
|
5
|
+
# end
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
end
|
7
|
+
# def serialize_all_with(serializer, collection, options = {})
|
8
|
+
# collection.map do |item|
|
9
|
+
# serialize_with(
|
10
|
+
# serializer,
|
11
|
+
# item,
|
12
|
+
# options
|
13
|
+
# )
|
14
|
+
# end
|
15
|
+
# end
|
16
|
+
# end
|
17
|
+
# end
|
data/lib/wolf_core/version.rb
CHANGED
data/lib/wolf_core.rb
CHANGED