Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Commit

Permalink
added support for being able to rename :class_name in ajaxful_rateable
Browse files Browse the repository at this point in the history
  • Loading branch information
treble37 committed Jun 28, 2012
1 parent 4361790 commit 60d53c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/axr/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module ClassMethods
# ajaxful_rateable :stars => 10, :cache_column => :custom_column
# end
def ajaxful_rateable(options = {})
has_many :rates_without_dimension, :as => :rateable, :class_name => 'Rate',
has_many :rates_without_dimension, :as => :rateable, options.merge(:class_name => 'Rate'),
:dependent => :destroy, :conditions => {:dimension => nil}
has_many :raters_without_dimension, :through => :rates_without_dimension, :source => :rater

Expand Down

0 comments on commit 60d53c3

Please sign in to comment.