smooth_operator 1.8.5 → 1.8.6

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
- ZjAzMDZjMmQ3N2JkNzEzOWQ0MWNlNzcyNjc1ZjdkNzg1ZjI4MzdiMQ==
4
+ OTg1N2FhNjBlOTY1NDYyMGRhMThlYWJlMzE2M2UzY2U4MWY3ZDUxYw==
5
5
  data.tar.gz: !binary |-
6
- NTBiYjI0ODhhNzM1MzE4Y2FkOWJkOGRhMDBhYTIzNDU4NDAzNzVhNQ==
6
+ Zjk1M2U1ZjVmNjhhYWMyOTliODRjNmZkMDMwNmRlMzU5ZWU3NWYyZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZGViNTdmZDI2N2E5MWQ1NmYwOGQ1ZDI3MjAxNjg1ODBiYTIxZjhhYjJjNjBh
10
- MTNiMjFjOGI5M2ZhNTNkOTI4NDEyMzcyNGUyOTNhNjdiZmYwNjliZWEyZDQ5
11
- ZGNkODYzYzA2MzY0N2QwOGViMmY0ODFhZWI5MjRhMWZmMmM0MmE=
9
+ NDdkODNlMDdkMDhkYzBkYTc5ZjdkYTlmMGU3OWQ4MDZjNGE1Y2NiNDNjMTU2
10
+ OTZmODk5NDkwMmYyNmE5Mzk2ZDk0MjZlODY3ZmIxZDgzMzYyNGUxZmM4MTg2
11
+ MWRmM2NmZjJiZGViNTY1NjllMGIzZDU2N2U3N2YwMGI3MWQ5ZDI=
12
12
  data.tar.gz: !binary |-
13
- MzkzMzUyZmQ1MDUxNzI4NjVlOGFkMWNhZjVlNTljZTQ5M2ZkZjA5YWMyOTQx
14
- NjdjZTgxNmQ1MDI0NDQ5ZTE1NzMwZTBjNzMzYTgyNTMzNDIzMDM5Y2Y1OTc4
15
- NGMwZDNkNmRhZmMxOWJiNGU4YmJmMzQyMDc1MjM4NTBlNzFiMjA=
13
+ MGYyODNhNDQ4MzUzNTE2NjkxNzdlYjkwYzY1YzE4MzkzMjJjMzEyNGQ3NmEw
14
+ NGI0YWI0YjM3OWNkMmNjZGZmNmUxYzdmM2VjYzU2YTk1MmMxNzVmNTcxZDU2
15
+ OWYxNTlhNGFhYzFmNmMzYWU2OTUzMmEzMGM4MGUxNGU3YzgxODM=
@@ -61,6 +61,8 @@ module SmoothOperator
61
61
  protected ############## PROTECTED #############
62
62
 
63
63
  def rails_model_name_method
64
+ return '' if Helpers.blank?(@_model_name)
65
+
64
66
  @model_name ||= begin
65
67
  namespace ||= self.parents.detect do |n|
66
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.5"
2
+ VERSION = "1.8.6"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  class Address < SmoothOperator::Base
2
- self.model_name = 'user'
2
+ self.model_name = ''
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.5
4
+ version: 1.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - João Gonçalves