lib/agnostic_backend/indexable/indexable.rb in agnostic_backend-0.9.8 vs lib/agnostic_backend/indexable/indexable.rb in agnostic_backend-0.9.9
- old
+ new
@@ -9,10 +9,10 @@
end
end
def self.included(base)
@includers ||= []
- @includers << base unless @includers.include? base
+ @includers << base if @includers.none?{|klass| klass.name == base.name}
base.send :include, InstanceMethods
base.send :extend, ClassMethods
end
module ClassMethods