1
0
Fork 0
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:
Ben Woosley 2014-09-24 21:18:44 -07:00
parent 482e80e844
commit 588c321e74
2 changed files with 7 additions and 11 deletions

View file

@ -19,7 +19,6 @@ module ActiveRecord
def initialize(base_klass, children)
@base_klass = base_klass
@column_names_with_alias = nil
@children = children
end

View file

@ -297,16 +297,13 @@ module ActiveRecord
undefine_attribute_methods
connection.schema_cache.clear_table_cache!(table_name) if table_exists?
@arel_engine = nil
@column_names = nil
@column_types = nil
@content_columns = nil
@default_attributes = nil
@dynamic_methods_hash = nil
@inheritance_column = nil unless defined?(@explicit_inheritance_column) && @explicit_inheritance_column
@relation = nil
@time_zone_column_names = nil
@cached_time_zone = nil
@arel_engine = nil
@column_names = nil
@column_types = nil
@content_columns = nil
@default_attributes = nil
@inheritance_column = nil unless defined?(@explicit_inheritance_column) && @explicit_inheritance_column
@relation = nil
end
private