Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #75 from treble37/rails3-rename-rate-model

Rails3 rename rate modelhttps://github.com/treble37/ajaxful-rating/pull/new/rails3-rename-rate-model#commits_bucket
  • Loading branch information...
commit 520f117743da221ca853e28f86de0688e04db0fb 2 parents 8a80ae7 + fdbff9b
@edgarjs authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/axr/model.rb
View
3  lib/axr/model.rb
@@ -18,8 +18,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',
- :dependent => :destroy, :conditions => {:dimension => nil}
+ has_many :rates_without_dimension, :as => :rateable, options.merge(:class_name => 'Rate'), :dependent => :destroy, :conditions => {:dimension => nil}
@meanphil
meanphil added a note

This is invalid Ruby syntax (in both 1.8.7 and 1.9.3)...

@edgarjs Owner
edgarjs added a note

Right, thanks for pointing it out. Reverted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
has_many :raters_without_dimension, :through => :rates_without_dimension, :source => :rater
class << self
@meanphil

This is invalid Ruby syntax (in both 1.8.7 and 1.9.3)...

@edgarjs

Right, thanks for pointing it out. Reverted.

Please sign in to comment.
Something went wrong with that request. Please try again.