1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

only break backwards compatibility in major releases

This commit is contained in:
Aaron Patterson 2010-12-03 16:07:28 -08:00
parent 7b3e8d6794
commit ac6296ab8f
4 changed files with 10 additions and 10 deletions

View file

@ -15,13 +15,13 @@
* Calls to `delete` are deprecated. Please use `compile_delete` then call
`to_sql` on the resulting object and execute that SQL.
* Arel::Table#joins is deprecated and will be removed in 2.2.0 with no
* Arel::Table#joins is deprecated and will be removed in 3.0.0 with no
replacement.
* Arel::Table#columns is deprecated and will be removed in 2.2.0 with no
* Arel::Table#columns is deprecated and will be removed in 3.0.0 with no
replacement.
* Arel::Table.table_cache is deprecated and will be removed in 2.2.0 with no
* Arel::Table.table_cache is deprecated and will be removed in 3.0.0 with no
replacement.
== 2.0.6 12/01/2010

View file

@ -22,7 +22,7 @@ module Arel
def update values
if $VERBOSE
warn <<-eowarn
update (#{caller.first}) is deprecated and will be removed in ARel 2.2.0. Please
update (#{caller.first}) is deprecated and will be removed in ARel 3.0.0. Please
switch to `compile_update`
eowarn
end
@ -41,7 +41,7 @@ switch to `compile_update`
def insert values
if $VERBOSE
warn <<-eowarn
insert (#{caller.first}) is deprecated and will be removed in ARel 2.2.0. Please
insert (#{caller.first}) is deprecated and will be removed in ARel 3.0.0. Please
switch to `compile_insert`
eowarn
end
@ -58,7 +58,7 @@ switch to `compile_insert`
def delete
if $VERBOSE
warn <<-eowarn
delete (#{caller.first}) is deprecated and will be removed in ARel 2.2.0. Please
delete (#{caller.first}) is deprecated and will be removed in ARel 3.0.0. Please
switch to `compile_delete`
eowarn
end

View file

@ -155,7 +155,7 @@ module Arel
def joins manager
if $VERBOSE
warn "joins is deprecated and will be removed in 2.2"
warn "joins is deprecated and will be removed in 3.0.0"
warn "please remove your call to joins from #{caller.first}"
end
manager.join_sql

View file

@ -45,7 +45,7 @@ module Arel
def joins manager
if $VERBOSE
warn "joins is deprecated and will be removed in 2.2"
warn "joins is deprecated and will be removed in 3.0.0"
warn "please remove your call to joins from #{caller.first}"
end
nil
@ -95,7 +95,7 @@ module Arel
if $VERBOSE
warn <<-eowarn
(#{caller.first}) Arel::Table#columns is deprecated and will be removed in
Arel 2.2.0 with no replacement. PEW PEW PEW!!!
Arel 3.0.0 with no replacement. PEW PEW PEW!!!
eowarn
end
@columns ||=
@ -129,7 +129,7 @@ Arel 2.2.0 with no replacement. PEW PEW PEW!!!
if $VERBOSE
warn <<-eowarn
(#{caller.first}) Arel::Table.table_cache is deprecated and will be removed in
Arel 2.2.0 with no replacement. PEW PEW PEW!!!
Arel 3.0.0 with no replacement. PEW PEW PEW!!!
eowarn
end
@@table_cache ||= Hash[engine.connection.tables.map { |x| [x,true] }]