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

rails4 fixes #99

Open
wants to merge 3 commits into
base: rails3
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use symbols for associations (required by rails4)
  • Loading branch information
helloenvoy-andrew committed Feb 3, 2014
commit 93cda55fe6c644361b5db60764d22fc9945b39e1
4 changes: 2 additions & 2 deletions lib/axr/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def axr_config(dimension = nil)

if options[:dimensions].is_a?(Array)
options[:dimensions].each do |dimension|
has_many "#{dimension}_rates", :dependent => :destroy,
has_many :"#{dimension}_rates", :dependent => :destroy,
:conditions => {:dimension => dimension.to_s}, :class_name => 'Rate', :as => :rateable
has_many "#{dimension}_raters", :through => "#{dimension}_rates", :source => :rater
has_many :"#{dimension}_raters", :through => :"#{dimension}_rates", :source => :rater

axr_config(dimension).update(options)
end
Expand Down