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:
parent
7b3e8d6794
commit
ac6296ab8f
4 changed files with 10 additions and 10 deletions
|
@ -15,13 +15,13 @@
|
||||||
* Calls to `delete` are deprecated. Please use `compile_delete` then call
|
* Calls to `delete` are deprecated. Please use `compile_delete` then call
|
||||||
`to_sql` on the resulting object and execute that SQL.
|
`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.
|
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.
|
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.
|
replacement.
|
||||||
|
|
||||||
== 2.0.6 12/01/2010
|
== 2.0.6 12/01/2010
|
||||||
|
|
|
@ -22,7 +22,7 @@ module Arel
|
||||||
def update values
|
def update values
|
||||||
if $VERBOSE
|
if $VERBOSE
|
||||||
warn <<-eowarn
|
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`
|
switch to `compile_update`
|
||||||
eowarn
|
eowarn
|
||||||
end
|
end
|
||||||
|
@ -41,7 +41,7 @@ switch to `compile_update`
|
||||||
def insert values
|
def insert values
|
||||||
if $VERBOSE
|
if $VERBOSE
|
||||||
warn <<-eowarn
|
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`
|
switch to `compile_insert`
|
||||||
eowarn
|
eowarn
|
||||||
end
|
end
|
||||||
|
@ -58,7 +58,7 @@ switch to `compile_insert`
|
||||||
def delete
|
def delete
|
||||||
if $VERBOSE
|
if $VERBOSE
|
||||||
warn <<-eowarn
|
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`
|
switch to `compile_delete`
|
||||||
eowarn
|
eowarn
|
||||||
end
|
end
|
||||||
|
|
|
@ -155,7 +155,7 @@ module Arel
|
||||||
|
|
||||||
def joins manager
|
def joins manager
|
||||||
if $VERBOSE
|
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}"
|
warn "please remove your call to joins from #{caller.first}"
|
||||||
end
|
end
|
||||||
manager.join_sql
|
manager.join_sql
|
||||||
|
|
|
@ -45,7 +45,7 @@ module Arel
|
||||||
|
|
||||||
def joins manager
|
def joins manager
|
||||||
if $VERBOSE
|
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}"
|
warn "please remove your call to joins from #{caller.first}"
|
||||||
end
|
end
|
||||||
nil
|
nil
|
||||||
|
@ -95,7 +95,7 @@ module Arel
|
||||||
if $VERBOSE
|
if $VERBOSE
|
||||||
warn <<-eowarn
|
warn <<-eowarn
|
||||||
(#{caller.first}) Arel::Table#columns is deprecated and will be removed in
|
(#{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
|
eowarn
|
||||||
end
|
end
|
||||||
@columns ||=
|
@columns ||=
|
||||||
|
@ -129,7 +129,7 @@ Arel 2.2.0 with no replacement. PEW PEW PEW!!!
|
||||||
if $VERBOSE
|
if $VERBOSE
|
||||||
warn <<-eowarn
|
warn <<-eowarn
|
||||||
(#{caller.first}) Arel::Table.table_cache is deprecated and will be removed in
|
(#{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
|
eowarn
|
||||||
end
|
end
|
||||||
@@table_cache ||= Hash[engine.connection.tables.map { |x| [x,true] }]
|
@@table_cache ||= Hash[engine.connection.tables.map { |x| [x,true] }]
|
||||||
|
|
Loading…
Reference in a new issue