Flowdock
method

try_to_load_dependency

Importance_0
Ruby on Rails latest stable (v4.2.1) - 0 notes - Class: ActiveRecord::TestFixtures::ClassMethods

Method deprecated or moved

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

try_to_load_dependency(file_name) public

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/fixtures.rb, line 861
      def try_to_load_dependency(file_name)
        require_dependency file_name
      rescue LoadError => e
        unless fixture_class_names.key?(file_name.pluralize)
          if ActiveRecord::Base.logger
            ActiveRecord::Base.logger.warn("Unable to load #{file_name}, make sure you added it to ActiveSupport::TestCase.set_fixture_class")
            ActiveRecord::Base.logger.warn("underlying cause #{e.message} \n\n #{e.backtrace.join("\n")}")
          end
        end
      end
Register or log in to add new notes.