Flowdock
method

preload

Importance_0
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: Preloader
preload(association) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations/preloader.rb, line 99
      def preload(association)
        case association
        when Hash
          preload_hash(association)
        when Symbol
          preload_one(association)
        when String
          preload_one(association.to_sym)
        else
          raise ArgumentError, "#{association.inspect} was not recognised for preload"
        end
      end
Register or log in to add new notes.