datasource 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/datasource/adapters/active_record.rb +2 -2
- data/lib/datasource/adapters/sequel.rb +2 -2
- 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: 9973311b949db8c6ca01bb3ecb48783672c3c944
|
4
|
+
data.tar.gz: c637f609505d2b804d1584217c54014538cfc610
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f9ab2da59af6554020f41def1cb53d0d5d8081f0670c72cd8987eea12d3e1e5fe0e03429dc60f8565fdee3dbdac8b636498401c205f70972aa3b5ebfc5170fe
|
7
|
+
data.tar.gz: fb9edb165717234696afc3a1025d2cd843a73ee1e3d62f11d2ee0a3963437941fd985aabce29ba505e9270fda6409897dd9828627d43ffff8f0c2ca904e09096
|
@@ -67,8 +67,8 @@ module Datasource
|
|
67
67
|
attr_accessor :_datasource_loaded, :_datasource_instance
|
68
68
|
end
|
69
69
|
|
70
|
-
def for_serializer(serializer_class = nil, datasource_class = nil)
|
71
|
-
self.class.upgrade_for_serializer([self], serializer_class, datasource_class).first
|
70
|
+
def for_serializer(serializer_class = nil, datasource_class = nil, &block)
|
71
|
+
self.class.upgrade_for_serializer([self], serializer_class, datasource_class, &block).first
|
72
72
|
end
|
73
73
|
|
74
74
|
module ClassMethods
|
@@ -91,8 +91,8 @@ module Datasource
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
|
-
def for_serializer(serializer_class = nil, datasource_class = nil)
|
95
|
-
self.class.upgrade_for_serializer([self], serializer_class, datasource_class).first
|
94
|
+
def for_serializer(serializer_class = nil, datasource_class = nil, &block)
|
95
|
+
self.class.upgrade_for_serializer([self], serializer_class, datasource_class, &block).first
|
96
96
|
end
|
97
97
|
|
98
98
|
module ClassMethods
|