method

guard_against_missing_reflections

rails latest stable - Class: ActiveRecord::Associations::ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1.0.0) is shown here.

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