lib/octopus/association.rb in ar-octopus-0.0.23 vs lib/octopus/association.rb in ar-octopus-0.0.24

- old
+ new

@@ -1,13 +1,13 @@ module Octopus::Association def has_many(association_id, options = {}, &extension) default_octopus_opts(options) - super(association_id, options, &extension) + super end def has_and_belongs_to_many(association_id, options = {}, &extension) default_octopus_opts(options) - super(association_id, options, &extension) + super end def default_octopus_opts(options) if options[:before_add].is_a?(Array) options[:before_add] << :set_connection \ No newline at end of file