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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWE4YzMxZjg0YmM1ZTFjNDIyOTYyM2FmOTI1Yzk0OWMxY2EwYWZjNg==
4
+ ZGE0YTY1MWJkZjYyOGQwZWZkNDhlMGRmODBhN2E0MWNjZmMzYWNkZg==
5
5
  data.tar.gz: !binary |-
6
- NTU0YjgzMTI3YjY0MDFjNmIyMWI4MTBlNThjNThhYTFiN2RjM2QyNQ==
6
+ Y2MyZTQ2NGNhNWUyMWIxODMyNGExMGU1ZGI2NTg4MGRhZjdiZmM0Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZmM0ZDU0NTgwYzdhMzEyZjc1MGI3N2MyODc2YThlZTQ5YzY0ODFhODMzNWQy
10
- ZmZlZjI3MTM0YTQ1Y2M4OTkwMTNjNjQyYzViMWJhZjIxMDY1NzVlZWYxOTJi
11
- MzFhNWY5NThiNDFkNjk5ZTIwMjNlOTVjYTQzZTdhYjg4NjczMTE=
9
+ MmJjMTZhMjljNGZiM2FiODYzNWJlMzUzN2M1NDU1NTIyNTE1YWU4MmE5ZDE2
10
+ ZDY1ZThlNjdhMTMwODE2N2I4ZmRiZmYzODExYWM5YWUzYjMxOWUwMWFhNTc1
11
+ MWMyN2NkZDk1NDgyNmI1MmNlNThlZWE4ZDQ2MjFhYWM0ZGZjNzQ=
12
12
  data.tar.gz: !binary |-
13
- Zjc5NDA3MTY4YmRmODYxZGNkMTgzNWQ1ZTk5YzRiMWVkNTY1NzdlOWY1YmY4
14
- NGM5YjlmYTIwOTgwOTVhNWM5NGNmMGJmZmY2ZTAxYzkyYTI5MzNmNDA0ZDIz
15
- NTQ5YjAyOGI1ODQyNDBmOTBiYTFhNGZlMzExY2FiZWExMThhMmU=
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 ||= (Helpers.super_method(self, :resources_name, true) || (default_bypass ? nil : self.resource_name.pluralize))
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 ||= (Helpers.super_method(self, :resource_name, true) || (default_bypass ? nil : self.model_name.to_s.underscore))
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
 
@@ -1,3 +1,3 @@
1
1
  module SmoothOperator
2
- VERSION = "1.10.22"
2
+ VERSION = "1.10.23"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smooth_operator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.22
4
+ version: 1.10.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - João Gonçalves