pretty-api 0.3.0 → 0.3.1

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: 7ae1f5a395773d7742e4e8d35c5bd8ab123c474b5e0bef974b3f493b3149e97f
4
- data.tar.gz: c501cd773a268868814c2c8ebe08dd425eea7be219c2f3d72e52cb292305aa0e
3
+ metadata.gz: 4bd1b6f06b9359270546fda79b7afea4e34789ebda0c9710dcd9e29843918e12
4
+ data.tar.gz: 2245430d8a8742e742108239ba035f65bd63a79f21c99b355d3edfdd30492e4d
5
5
  SHA512:
6
- metadata.gz: f6826d7e3534689df805027042f6e65282a29fcb08456c8384f5598b9c7727613de31e55d7daa92509e874ce2dd3dc2bb11c7f0b734bcfa3d3ffb1e197ad3e99
7
- data.tar.gz: bf162d88d8828702df78a4e731f0dd4c64bdc1bebdd94cd61cece7f2a0047a622111de4460b513343cb5d38f3459643d12e8bd9918ab0f24e85611082caf2bf9
6
+ metadata.gz: 354f2859bdffce8317f9dc1d14a539a5600e070dfc9f529b174e66c46cff88d3b5a5c84261a9b122bf905da71b3500dc4c3ec0bb46dc610b5831e80aa0a916b5
7
+ data.tar.gz: 4a145833591f955c72c4a66e5492c186dc11381c936a2060a7004b05cf6bbaa6d102f76386b1e593ec95908fee6554ed3d88aa79d051a3f499160017dfd566c6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.3.1] - 2024-06-01
4
+
5
+ - Fix possible "Unitialized Constant" error when inferring association classes that are namespaced
6
+
3
7
  ## [0.3.0] - 2024-06-01
4
8
 
5
9
  - Support for ActionController::Parameters from Rails
@@ -6,7 +6,7 @@ module PrettyApi
6
6
  result[model] ||= {}
7
7
 
8
8
  association = attribute_association(model, association_name)
9
- association_class = association.class_name.constantize
9
+ association_class = association.klass
10
10
 
11
11
  result[model][association_name] = {
12
12
  model: association_class,
@@ -1,3 +1,3 @@
1
1
  module PrettyApi
2
- VERSION = "0.3.0".freeze
2
+ VERSION = "0.3.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretty-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James St-Pierre