lib/superstore/associations/builder/association.rb in superstore-2.0.1 vs lib/superstore/associations/builder/association.rb in superstore-2.1.0

- old
+ new

@@ -12,10 +12,10 @@ def build define_writer define_reader reflection = Superstore::Associations::Reflection.new(macro, name, model, options) - model.association_reflections = model.association_reflections.merge(name => reflection) + ActiveRecord::Reflection.add_reflection model, name, reflection end def mixin model.generated_association_methods end \ No newline at end of file