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
|
||||
`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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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] }]
|
||||
|
|
Loading…
Reference in a new issue