Skip to content

Commit

Permalink
Use available method rather than macro name checking
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Aug 1, 2014
1 parent fe24ba8 commit 20405e5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -77,7 +77,7 @@ def foreign_key_present?
end

def ensure_mutable
if source_reflection.macro != :belongs_to
unless source_reflection.belongs_to?
raise HasManyThroughCantAssociateThroughHasOneOrManyReflection.new(owner, reflection)
end
end
Expand Down

0 comments on commit 20405e5

Please sign in to comment.