method
cached_fixtures
cached_fixtures(connection, keys_to_fetch = nil)
public
Hide source
# File activerecord/lib/active_record/fixtures.rb, line 464 def self.cached_fixtures(connection, keys_to_fetch = nil) if keys_to_fetch fixtures = cache_for_connection(connection).values_at(*keys_to_fetch) else fixtures = cache_for_connection(connection).values end fixtures.size > 1 ? fixtures : fixtures.first end