mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove defunct ivars
@column_names_with_alias, @dynamic_methods_hash, @time_zone_column_names, and @cached_time_zone
This commit is contained in:
parent
482e80e844
commit
588c321e74
2 changed files with 7 additions and 11 deletions
|
@ -19,7 +19,6 @@ module ActiveRecord
|
||||||
|
|
||||||
def initialize(base_klass, children)
|
def initialize(base_klass, children)
|
||||||
@base_klass = base_klass
|
@base_klass = base_klass
|
||||||
@column_names_with_alias = nil
|
|
||||||
@children = children
|
@children = children
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -297,16 +297,13 @@ module ActiveRecord
|
||||||
undefine_attribute_methods
|
undefine_attribute_methods
|
||||||
connection.schema_cache.clear_table_cache!(table_name) if table_exists?
|
connection.schema_cache.clear_table_cache!(table_name) if table_exists?
|
||||||
|
|
||||||
@arel_engine = nil
|
@arel_engine = nil
|
||||||
@column_names = nil
|
@column_names = nil
|
||||||
@column_types = nil
|
@column_types = nil
|
||||||
@content_columns = nil
|
@content_columns = nil
|
||||||
@default_attributes = nil
|
@default_attributes = nil
|
||||||
@dynamic_methods_hash = nil
|
@inheritance_column = nil unless defined?(@explicit_inheritance_column) && @explicit_inheritance_column
|
||||||
@inheritance_column = nil unless defined?(@explicit_inheritance_column) && @explicit_inheritance_column
|
@relation = nil
|
||||||
@relation = nil
|
|
||||||
@time_zone_column_names = nil
|
|
||||||
@cached_time_zone = nil
|
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in a new issue