We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
associations_mapping
1 parent 361e98b commit d2bad68Copy full SHA for d2bad68
lib/generators/avo/resource_generator.rb
@@ -228,7 +228,7 @@ def field_from_through_association(association)
228
# If the through_reflection is not a HasManyReflection, add it to the fields hash using the class of the through_reflection
229
# ex (team.rb): has_one :admin, through: :admin_membership, source: :user
230
# we use the class of the through_reflection (HasOneReflection -> has_one :admin) to generate the field
231
- associations_mapping[association.through_reflection.class]
+ ::Avo::Mappings::ASSOCIATIONS_MAPPING[association.through_reflection.class]
232
end
233
234
0 commit comments