smooth_operator 1.8.7 → 1.8.8
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 +3 -5
- data/lib/smooth_operator/version.rb +1 -1
- data/spec/support/models/address.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
|
+
NDYzNDA5ZmU0YzkzNDFmMzEzMzkyMjk5OWY3YWIzZjUzZWJlZGI0ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGQ4ZTRhZjhlMzAyMWRlYTFiNDkwYzM1YTQwNzk1MTkxM2E1YzQ1Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGQ3NDUyY2U5MzMwNGE5NGNiZDk1OWQ1ZjU2ZjM1NTA2ZGIzNTFlYzJkYWZm
|
10
|
+
Yjc5MDBhNDhhYThlZjkyYmE0NjcyZWQxYjczMGZiMDYzNTdjOGMwYTBkMWRm
|
11
|
+
MjE0MzdmODgzYjM3M2RhYTg4NmIxOTljNjBjOTg3YjQ2ZDUxZDQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjgxMmJkZTAzN2E5MjlkNzcxZmQyYmI5NDhmODM1OGFkYWIyZDA4YzYwNGQw
|
14
|
+
NDBmMzUyZDU4YjgwYzZlZGRmOWFmNGUwMjVjNDMwZmJiYTgwNDY4MWYxNTY3
|
15
|
+
NmE5MjZhNGYwMDBjMTliNjk0NGE1OTRlMjVlZDM2NjUzMDEzNzY=
|
@@ -46,12 +46,12 @@ module SmoothOperator
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def model_name
|
49
|
+
return '' if @_model_name == :none
|
50
|
+
|
49
51
|
if defined? ActiveModel
|
50
52
|
rails_model_name_method
|
51
53
|
else
|
52
|
-
|
53
|
-
|
54
|
-
@_model_name = name.split('::').last.underscore.capitalize
|
54
|
+
@_model_name ||= name.split('::').last.underscore.capitalize
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
@@ -63,8 +63,6 @@ module SmoothOperator
|
|
63
63
|
protected ############## PROTECTED #############
|
64
64
|
|
65
65
|
def rails_model_name_method
|
66
|
-
return '' if @_model_name.nil?
|
67
|
-
|
68
66
|
@model_name ||= begin
|
69
67
|
namespace ||= self.parents.detect do |n|
|
70
68
|
n.respond_to?(:use_relative_model_naming?) && n.use_relative_model_naming?
|