tapioca 0.4.9 → 0.4.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: aafcbad81626f19f1dd8dd93f7a781febc523582af0e8cc69913c46290f41241
4
- data.tar.gz: 716d90aae514e148dbdf6431d8252ee183dbf2aba30d7284adba4d5b80dcb8bc
3
+ metadata.gz: db90e001ad45dbd8edd11b2288405dd406588e1bb46120c7cd5f0cb560647ea6
4
+ data.tar.gz: 1eab20c32a1785046f814ca2fc54866bbc0c9d083bf682a8b1ea15bf92c9cc1e
5
5
  SHA512:
6
- metadata.gz: 56387ece08e56d0ae44486b4721fd3c13b74cecce488f90055da1f6fcfc3e5af3839f65b9bfe44f381962a31f39421f14f5d128e34a0c020cfcf14d167e9c93a
7
- data.tar.gz: 96faf43ea930219c07b39ff9bf0b0e755c53344a73b6cb7d75fd055ad3b864e33e1b66e06b5086693a39eb175e04a7be737996aaddfe7a5cde88da75822a23e2
6
+ metadata.gz: 77d4598557fc72b8a76dea56b626d05a3f91dd88d53cb0e96156ed92419534a32beeed17cd0f4791e37c972f2da86c07bb6a386a0dbb5813a5b4f998438e3127
7
+ data.tar.gz: 102c5591a319f1846506d0e1e439f52613bc9f5d6110eab98ee857d7a943921584e12b56733ec7b4f6e95824396ea1052ffc691eed0505bf2b00a7438ceabbe0
@@ -152,7 +152,7 @@ module Tapioca
152
152
  "reload_#{association_name}",
153
153
  return_type: association_type,
154
154
  )
155
- if reflection.constructable?
155
+ unless reflection.polymorphic?
156
156
  create_method(
157
157
  klass,
158
158
  "build_#{association_name}",
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Tapioca
5
- VERSION = "0.4.9"
5
+ VERSION = "0.4.10"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tapioca
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ufuk Kayserilioglu
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2020-11-20 00:00:00.000000000 Z
14
+ date: 2020-12-01 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: pry