diff options
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 8750e226b9..f8ae855e28 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -750,6 +750,12 @@ module ActiveRecord #:nodoc: @arel_engine = @relation = nil end + def clear_cache! # :nodoc: + @@columns.clear + @@columns_hash.clear + @@arel_tables.clear + end + def reset_column_cache # :nodoc: @@columns.delete table_name @@columns_hash.delete table_name |