lib/acts-as-joinable.rb in acts-as-joinable-0.1.7.8 vs lib/acts-as-joinable.rb in acts-as-joinable-0.2

- old
+ new

@@ -49,10 +49,10 @@ def count_joins(options = {}) relationship = options.delete(:as) || :parent conditions = options[:conditions] || {} conditions["#{relationship.to_s}_type".to_sym] = ([self.name] + (self.send(:subclasses) - self.included_modules).map(&:name)).flatten.uniq group = options[:group] || "#{relationship}_id" - ActsAsJoinable::Relationship.count(:conditions => conditions, :group => group) + Relationship.count(:conditions => conditions, :group => group) end def acts_as_joinable acts_as_joinable_on end \ No newline at end of file