foobara-active-record-type 0.0.3 → 0.0.4

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: 3499a493db193b496a20ae4dd0d1dd1d7ad5193701346ee2de9abc397b107ff9
4
- data.tar.gz: 59db77d01419543a0230aecb0d5f49aa6f1ba541bb820d7ffd743ee41211d2ea
3
+ metadata.gz: 1328ea690e597739be16596f51e9b71c289486409d87f6e005e4a84c47fc413b
4
+ data.tar.gz: f02618973852ed64a501b8ec4cde0872932c21a53aa3ae6678b27e71be4476b2
5
5
  SHA512:
6
- metadata.gz: a72802f7ae7ef65f5174285ae4dde77f7876b3463ea3d6a69bc7366a91838b5e1a22b94a8c6352b3725755195121855f391a30163378ceb065cfd16c6d9b9622
7
- data.tar.gz: b49ed2b61b22d34e1b0179c841e2deb05ac5b0886fa71826bcb781f1572e6c52323ed729cd2ae7b058d5e078a184fb872e8dff4329fdd8184c557f7ef15332f0
6
+ metadata.gz: 9f2901fa9461fcecd6adbf4bd8506e952d657d946d5e8b6a012a8df1e7ea9460b72416fd4e321e1e8108c21e383ed1c1d808077eebbc38d431a968bdd7ac17a3
7
+ data.tar.gz: 9d6b34ce44b69da4e20cb8245eb09886b7d5af88ecef493b236c081c7948250822b3e740ab09a790934d9ec86825bb6f65e5be58684264adbbf3fa3851c1c7e2
data/CHANGELOG.md CHANGED
@@ -1,10 +1,14 @@
1
- ## [0.0.3]
1
+ ## [0.0.4] - 2025-01-21
2
+
3
+ - Make use of ModelAttributeHelpers
4
+
5
+ ## [0.0.3] - 2025-01-17
2
6
 
3
7
  - Fix problem where the first time a type is declared via an
4
8
  active record class it has a complex declaration hash instead of a simple
5
9
  registered class lookup
6
10
 
7
- ## [0.0.1]
11
+ ## [0.0.1] - 2025-01-03
8
12
 
9
13
  - Release as a gem
10
14
 
@@ -18,6 +18,8 @@ module Foobara
18
18
  )
19
19
 
20
20
  BuiltinTypes.install_type_declaration_extensions_for(ExtendActiveRecordTypeDeclaration)
21
+
22
+ ActiveRecord::Base.include Foobara::ModelAttributeHelpers::Concerns::AttributeHelpers
21
23
  end
22
24
 
23
25
  def reset_all
@@ -3,6 +3,11 @@ module ActiveRecordFoobaraMethods
3
3
 
4
4
  class_methods do
5
5
  attr_accessor :foobara_type, :foobara_attributes_type
6
+
7
+ # TODO: implement this or figure out how to re-use the methods from Entity/Model
8
+ def foobara_associations
9
+ {}
10
+ end
6
11
  end
7
12
  end
8
13
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-active-record-type
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-18 00:00:00.000000000 Z
10
+ date: 2025-01-21 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activerecord