smooth_operator 1.10.22 → 1.10.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/smooth_operator/model_schema.rb +6 -2
- data/lib/smooth_operator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGE0YTY1MWJkZjYyOGQwZWZkNDhlMGRmODBhN2E0MWNjZmMzYWNkZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2MyZTQ2NGNhNWUyMWIxODMyNGExMGU1ZGI2NTg4MGRhZjdiZmM0Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmJjMTZhMjljNGZiM2FiODYzNWJlMzUzN2M1NDU1NTIyNTE1YWU4MmE5ZDE2
|
10
|
+
ZDY1ZThlNjdhMTMwODE2N2I4ZmRiZmYzODExYWM5YWUzYjMxOWUwMWFhNTc1
|
11
|
+
MWMyN2NkZDk1NDgyNmI1MmNlNThlZWE4ZDQ2MjFhYWM0ZGZjNzQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTQ4NjI4NmE1ZTdlM2MxNWU1Y2NlYjE5YzZlZjMzNThmMzUyYzc4ODdhMDY4
|
14
|
+
MDY5YTA0NTQ0M2VkMzJlZDE2M2EwNmQwZGI2NDViNzg2ZGNhNjE2MTE5N2Mw
|
15
|
+
ZjAxNDk3NzQxZTRlZGFkYzg0YjU1YTc3YzY2ZGY3MjVmYzUyMjM=
|
@@ -17,12 +17,16 @@ module SmoothOperator
|
|
17
17
|
module ClassMethods
|
18
18
|
|
19
19
|
def resources_name(default_bypass = nil)
|
20
|
-
@resources_name
|
20
|
+
return @resources_name if defined?(@resources_name)
|
21
|
+
|
22
|
+
(Helpers.super_method(self, :resources_name, true) || (default_bypass ? nil : self.resource_name.pluralize))
|
21
23
|
end
|
22
24
|
attr_writer :resources_name
|
23
25
|
|
24
26
|
def resource_name(default_bypass = nil)
|
25
|
-
@resource_name
|
27
|
+
return @resource_name if defined?(@resource_name)
|
28
|
+
|
29
|
+
(Helpers.super_method(self, :resource_name, true) || (default_bypass ? nil : self.model_name.to_s.underscore))
|
26
30
|
end
|
27
31
|
attr_writer :resource_name
|
28
32
|
|