rhino_project_core 0.21.0.beta.8 → 0.21.0.beta.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9768789b4c269c7a18c3f9269d35d7c87f9607b46bbe4a67b732274725cdf62
4
- data.tar.gz: fae5dc8ba450f4b80f2faa5daef36839783100a52248f491f139c9f7f6ec8509
3
+ metadata.gz: 2f83a151c002a790f546ee4a99f6a5da4c856fe3e0d31c1917bcaf885a5e022a
4
+ data.tar.gz: 48bfd632de1f2f745e0c0a12ffcb4529b88d93d42b7b01befef4812e42895d20
5
5
  SHA512:
6
- metadata.gz: 6bd3f0151f51e80e10575a2f8e2da7a195d19ce36e7e5cee8daeb9efad940e499cc2b9d520460b0504db3c018349b260ef5e562b62833e041aaae50d89048543
7
- data.tar.gz: b50eb07460168da0bc6dbb72926b8155ce94ee9d92648dabfed2a6022bd4110eb8c467afdce96ba9548bd532041b3e4ca162c045956d695d9eb63d5d22253fc5
6
+ metadata.gz: 5c8c4ef2c32ed9aaae64dd80d9dad0a7783b71e5c8d0a0b3687e47df69931e9e4b736e1db4283cf72b2b97b4669bfcb653548de762e5d3e9254341b82bd19e17
7
+ data.tar.gz: 1e32892e2b7c520fe84f0cefca3585de708d723ec6948779a3069de6d8e6cc7bd1f6378f201aa78bc982f94972acc0b36c650a0ab84a0aa0a2abf7047cfd356b
@@ -48,7 +48,7 @@ module Rhino
48
48
  return if global_owner?
49
49
 
50
50
  inject_into_file model_file, after: /#{owner_call}/ do
51
- "\n rhino_references %i[#{owner_name}]"
51
+ "\n rhino_references %i[#{reference_attributes.map(&:name).join(' ')}]\n"
52
52
  end
53
53
  end
54
54
 
@@ -67,7 +67,7 @@ module Rhino
67
67
  end
68
68
 
69
69
  def base_owner?
70
- @base_owner = options[:base_owner] || Rhino.base_owner.model_name.singular == options[:owner]
70
+ @base_owner = options[:base_owner] || options[:owner] == "base" || Rhino.base_owner.model_name.singular == options[:owner]
71
71
  end
72
72
 
73
73
  def reference_owner?
data/lib/rhino/version.rb CHANGED
@@ -10,7 +10,7 @@ module Rhino
10
10
  MAJOR = 0
11
11
  MINOR = 21
12
12
  TINY = 0
13
- PRE = "beta.8"
13
+ PRE = "beta.10"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhino_project_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0.beta.8
4
+ version: 0.21.0.beta.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Rosevear
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-17 00:00:00.000000000 Z
11
+ date: 2024-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails