Method: ActiveMocker::ActiveRecord::Schema.search_cache
- Defined in:
- lib/active_mocker/active_record/schema.rb
.search_cache(table_name) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 27 28 29 |
# File 'lib/active_mocker/active_record/schema.rb', line 24 def self.search_cache(table_name) @tables_cache ||= [] @tables_cache.find do |h| h.name == table_name end end |