For example lets say you have:
class Model < AR::Base
has_many :somethings, :finder_sql => "SELECT * FROM somethings"
end
class Something < AR::Base
named_scope :valuable {...code...}
end
# Assume you have one model but 0 somethings:
# Model.first.somethings # => [] Good!
# Model.first.somethings.valuable # => nil Bad! Should return [] !!!
This only occurs when you have finder_sql in has_many relationship. In other cases it works as expected.
Is this normal behavior of Rails 2.3.14?