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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODMyNWU0M2EwYjA0Mjk1M2I5MWM3YzVhZjU5YzIxYWQxMTFjY2FiYw==
4
+ NDYzNDA5ZmU0YzkzNDFmMzEzMzkyMjk5OWY3YWIzZjUzZWJlZGI0ZA==
5
5
  data.tar.gz: !binary |-
6
- YzhiYzNkYWM5YTI1ZjVkOWNkZTA0MTAwMGVhMTg2ZWQyZDgwYzgwYg==
6
+ ZGQ4ZTRhZjhlMzAyMWRlYTFiNDkwYzM1YTQwNzk1MTkxM2E1YzQ1Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzRlZjJkYzlmNzdiNzgxNTJmMjg0Mzc1YjczMDJlNmJlYjUzM2RiZWEwMThj
10
- YWEyNDc5MTFlYzI4MDE1ZDRmN2MzMGY0YjEyYmU1ODE5OThjMTYwOWFhNzZk
11
- NDEyZmIyZjY1ODZkYjEyOGEwZDI3N2U1NWZmYzExNTBhODg4YTM=
9
+ MGQ3NDUyY2U5MzMwNGE5NGNiZDk1OWQ1ZjU2ZjM1NTA2ZGIzNTFlYzJkYWZm
10
+ Yjc5MDBhNDhhYThlZjkyYmE0NjcyZWQxYjczMGZiMDYzNTdjOGMwYTBkMWRm
11
+ MjE0MzdmODgzYjM3M2RhYTg4NmIxOTljNjBjOTg3YjQ2ZDUxZDQ=
12
12
  data.tar.gz: !binary |-
13
- YWJiNGIxZGEzNmM0MDI2NTMwNzIwYTMzOGExYmNlN2E1ZmM1YmU1NzE1NDhh
14
- MTFmOTNkMTlhZTRiMmViNzE3ZDRiZTdlMGYyMGUzMmJiNDE2NTgxMjg0YWQw
15
- OTQ1NDJhNjU4MjdjMWQ5MDEwZWIzZjA4MjE3MjE4M2UzZjU3MzU=
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
- return @_model_name if defined?(@_model_name)
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?
@@ -1,3 +1,3 @@
1
1
  module SmoothOperator
2
- VERSION = "1.8.7"
2
+ VERSION = "1.8.8"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  class Address < SmoothOperator::Base
2
- self.model_name = nil
2
+ self.model_name = :none
3
3
 
4
4
  self.endpoint_user = 'admin'
5
5
  self.endpoint_pass = 'admin'
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.8.7
4
+ version: 1.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - João Gonçalves