Skip to content

Commit

Permalink
update association macros for rc.7
Browse files Browse the repository at this point in the history
  • Loading branch information
achiurizo committed Mar 17, 2011
1 parent c72c979 commit fcce1d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/riot-mongoid/has_association.rb
Expand Up @@ -4,7 +4,7 @@ class HasAssociationAssertion < Riot::AssertionMacro

def evaluate(model, *association_macro_info)
assoc_type, assoc_name, options = association_macro_info
assoc = model.associations[assoc_name.to_s]
assoc = model.relations[assoc_name.to_s]
options ||= {}
if assoc_name.nil?
fail("association name and potential options must be specified with this assertion macro")
Expand All @@ -17,4 +17,4 @@ def evaluate(model, *association_macro_info)
end
end
end
end
end

0 comments on commit fcce1d4

Please sign in to comment.