From 402b8ffdca81075fdee86f213c3a14bbb43dee13 Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Thu, 4 Jul 2013 08:34:52 +0530 Subject: Remove deprecated `Arel::Table.table_cache` with no replacement --- lib/arel/table.rb | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib/arel') diff --git a/lib/arel/table.rb b/lib/arel/table.rb index 5fb1254d17..aa61c36a31 100644 --- a/lib/arel/table.rb +++ b/lib/arel/table.rb @@ -146,15 +146,5 @@ Arel 4.0.0 with no replacement. PEW PEW PEW!!! end end - @@table_cache = nil - def self.table_cache engine # :nodoc: - if $VERBOSE - warn <<-eowarn -(#{caller.first}) Arel::Table.table_cache is deprecated and will be removed in -Arel 4.0.0 with no replacement. PEW PEW PEW!!! - eowarn - end - @@table_cache ||= Hash[engine.connection.tables.map { |x| [x,true] }] - end end end -- cgit v1.2.3 From e2f0dd62f237c6048edc50744cd67499b2d693ff Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Thu, 4 Jul 2013 08:36:19 +0530 Subject: Remove deprecated `Arel::Table#columns` with no replacement --- lib/arel/table.rb | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/arel') diff --git a/lib/arel/table.rb b/lib/arel/table.rb index aa61c36a31..189fb8eb94 100644 --- a/lib/arel/table.rb +++ b/lib/arel/table.rb @@ -100,17 +100,6 @@ primary_key (#{caller.first}) is deprecated and will be removed in Arel 4.0.0 from(self).having expr end - def columns - if $VERBOSE - warn <<-eowarn -(#{caller.first}) Arel::Table#columns is deprecated and will be removed in -Arel 4.0.0 with no replacement. PEW PEW PEW!!! - eowarn - end - @columns ||= - attributes_for @engine.connection.columns(@name, "#{@name} Columns") - end - def [] name ::Arel::Attribute.new self, name end -- cgit v1.2.3