Merge pull request #8691 from acapilleri/preload_association

refactoring to_sym of Symbol in preload
This commit is contained in:
Rafael Mendonça França 2013-01-02 07:00:56 -08:00
commit 1fd7971af7

@ -100,7 +100,9 @@ def preload(association)
case association
when Hash
preload_hash(association)
when String, Symbol
when Symbol
preload_one(association)
when String
preload_one(association.to_sym)
else
raise ArgumentError, "#{association.inspect} was not recognised for preload"