Skip to content
Browse files

only break backwards compatibility in major releases

  • Loading branch information...
1 parent 7b3e8d6 commit ac6296ab8f9d38dbfa8149eb0c6e16d6957dd519 @tenderlove tenderlove committed Dec 3, 2010
Showing with 10 additions and 10 deletions.
  1. +3 −3 History.txt
  2. +3 −3 lib/arel/crud.rb
  3. +1 −1 lib/arel/select_manager.rb
  4. +3 −3 lib/arel/table.rb
View
6 History.txt
@@ -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
6 lib/arel/crud.rb
@@ -22,7 +22,7 @@ def compile_update values
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 @@ def compile_insert values
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 @@ def compile_delete
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
2 lib/arel/select_manager.rb
@@ -155,7 +155,7 @@ def order_clauses
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
6 lib/arel/table.rb
@@ -45,7 +45,7 @@ def from table
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 @@ def columns
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 @@ def self.table_cache engine # :nodoc:
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] }]

0 comments on commit ac6296a

Please sign in to comment.
Something went wrong with that request. Please try again.