method

check_preloadable!

check_preloadable!()
public

No documentation available.

# File activerecord/lib/active_record/reflection.rb, line 342
      def check_preloadable!
        return unless scope

        if scope.arity > 0
          ActiveSupport::Deprecation.warn(            The association scope '#{name}' is instance dependent (the scope            block takes an argument). Preloading happens before the individual            instances are created. This means that there is no instance being            passed to the association scope. This will most likely result in            broken or incorrect behavior. Joining, Preloading and eager loading            of these associations is deprecated and will be removed in the future..squish)
        end
      end