Open
Description
When using this gem with namespaced classes, this gem breaks.
Ex:
class ModuleA::ModuleB::ClassA < ApplicationRecord
has_paper_trail
include Monetizable
# Relationships
belongs_to :class_c, class_name: 'ModuleA::ClassC'
belongs_to :class_d, -> { includes(:class_e) }, class_name: 'ModuleC::ClassD'
counter_culture [:class_d, :class_e], column_name: "orders_count"
throws:
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: invalid reference to FROM-clause entry for table...
HINT: Perhaps you meant to reference the table alias "modulec_class_d".
Whenever I call ModuleA::ModuleB::ClassA .counter_culture_fix_counts
Metadata
Assignees
Labels
No labels