diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2014-09-24 21:18:44 -0700 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2014-09-28 17:16:56 -0700 |
commit | 588c321e74b67b1ede87446cda818b9060efb48c (patch) | |
tree | 85c1479e34c72bb1540d2e0c6febd8a52d2bc5f6 /activerecord | |
parent | 482e80e84440136763b47c0fba2ed65a7823f022 (diff) | |
download | rails-588c321e74b67b1ede87446cda818b9060efb48c.tar.gz rails-588c321e74b67b1ede87446cda818b9060efb48c.tar.bz2 rails-588c321e74b67b1ede87446cda818b9060efb48c.zip |
Remove defunct ivars
@column_names_with_alias, @dynamic_methods_hash, @time_zone_column_names, and @cached_time_zone
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations/join_dependency/join_part.rb | 1 | ||||
-rw-r--r-- | activerecord/lib/active_record/model_schema.rb | 17 |
2 files changed, 7 insertions, 11 deletions
diff --git a/activerecord/lib/active_record/associations/join_dependency/join_part.rb b/activerecord/lib/active_record/associations/join_dependency/join_part.rb index 91e1c6a9d7..9c6573f913 100644 --- a/activerecord/lib/active_record/associations/join_dependency/join_part.rb +++ b/activerecord/lib/active_record/associations/join_dependency/join_part.rb @@ -19,7 +19,6 @@ module ActiveRecord def initialize(base_klass, children) @base_klass = base_klass - @column_names_with_alias = nil @children = children end diff --git a/activerecord/lib/active_record/model_schema.rb b/activerecord/lib/active_record/model_schema.rb index 850220babd..171a6f4391 100644 --- a/activerecord/lib/active_record/model_schema.rb +++ b/activerecord/lib/active_record/model_schema.rb @@ -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 |