brightcontent-core 2.4.3 → 2.4.4
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: eb5aa3651563a35dd7d6ec92a187c0cbb560f970
|
|
4
|
+
data.tar.gz: bb3d0d9ae15600bf232c84aa04131865e3dc3953
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd65e3d1de7ac2d7acc27015e52080f25dcec6afbfcf1943f972585666e3a155a1e90deff269ccb7752102a7943e6d6461e5e6f1f7b97558ba74d60b82017e0a
|
|
7
|
+
data.tar.gz: de69e4ff21e2a02db945212ae3e6831196649a7aa95af0d17f87a37a5283832d4a06262fe0e26dc0a54716a99b158bedff05c6370da6f656b0123477fcbd41d5
|
|
@@ -12,7 +12,7 @@ module Brightcontent
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def base_collection
|
|
15
|
-
instance_variable_get :"@#{
|
|
15
|
+
instance_variable_get :"@#{resource_collection_name}"
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def collection
|
|
@@ -20,7 +20,7 @@ module Brightcontent
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def collection=(val)
|
|
23
|
-
instance_variable_set :"@#{
|
|
23
|
+
instance_variable_set :"@#{resource_collection_name}", val
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def resource
|
|
@@ -35,12 +35,12 @@ module Brightcontent
|
|
|
35
35
|
controller_name.classify.constantize
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
def
|
|
39
|
-
resource_class.model_name.
|
|
38
|
+
def resource_instance_name
|
|
39
|
+
resource_class.model_name.param_key
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
def
|
|
43
|
-
|
|
42
|
+
def resource_collection_name
|
|
43
|
+
resource_instance_name.pluralize
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
def resource_human_name(options = {})
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: brightcontent-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.4.
|
|
4
|
+
version: 2.4.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Developers at Brightin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-09-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|