method
guard_against_missing_reflections
rails latest stable - Class:
ActiveRecord::Associations::ClassMethods
guard_against_missing_reflections(reflections, options)private
No documentation available.
# File activerecord/lib/active_record/associations.rb, line 893
def guard_against_missing_reflections(reflections, options)
reflections.each do |r|
raise(
ConfigurationError,
"Association was not found; perhaps you misspelled it? " +
"You specified :include => :#{[options[:include]].flatten.join(', :')}"
) if r.nil?
end
end