diff options
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/crud.rb | 6 | ||||
-rw-r--r-- | lib/arel/select_manager.rb | 8 | ||||
-rw-r--r-- | lib/arel/table.rb | 8 | ||||
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 2 |
4 files changed, 12 insertions, 12 deletions
diff --git a/lib/arel/crud.rb b/lib/arel/crud.rb index 43805dd464..6c29d5fee4 100644 --- a/lib/arel/crud.rb +++ b/lib/arel/crud.rb @@ -22,7 +22,7 @@ module Arel def update values if $VERBOSE warn <<-eowarn -update (#{caller.first}) is deprecated and will be removed in ARel 3.0.0. Please +update (#{caller.first}) is deprecated and will be removed in ARel 4.0.0. Please switch to `compile_update` eowarn end @@ -45,7 +45,7 @@ switch to `compile_update` def insert values if $VERBOSE warn <<-eowarn -insert (#{caller.first}) is deprecated and will be removed in ARel 3.0.0. Please +insert (#{caller.first}) is deprecated and will be removed in ARel 4.0.0. Please switch to `compile_insert` eowarn end @@ -62,7 +62,7 @@ switch to `compile_insert` def delete if $VERBOSE warn <<-eowarn -delete (#{caller.first}) is deprecated and will be removed in ARel 3.0.0. Please +delete (#{caller.first}) is deprecated and will be removed in ARel 4.0.0. Please switch to `compile_delete` eowarn end diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index 82b73cf3aa..32f833f686 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -49,7 +49,7 @@ module Arel def where_clauses if $VERBOSE - warn "(#{caller.first}) where_clauses is deprecated and will be removed in arel 3.0.0 with no replacement" + warn "(#{caller.first}) where_clauses is deprecated and will be removed in arel 4.0.0 with no replacement" end to_sql = Visitors::ToSql.new @engine.connection @ctx.wheres.map { |c| to_sql.accept c } @@ -160,7 +160,7 @@ module Arel end def wheres - warn "#{caller[0]}: SelectManager#wheres is deprecated and will be removed in ARel 3.0.0 with no replacement" + warn "#{caller[0]}: SelectManager#wheres is deprecated and will be removed in ARel 4.0.0 with no replacement" Compatibility::Wheres.new @engine.connection, @ctx.wheres end @@ -238,7 +238,7 @@ module Arel def joins manager if $VERBOSE - warn "joins is deprecated and will be removed in 3.0.0" + warn "joins is deprecated and will be removed in 4.0.0" warn "please remove your call to joins from #{caller.first}" end manager.join_sql @@ -266,7 +266,7 @@ module Arel def insert values if $VERBOSE warn <<-eowarn -insert (#{caller.first}) is deprecated and will be removed in ARel 3.0.0. Please +insert (#{caller.first}) is deprecated and will be removed in ARel 4.0.0. Please switch to `compile_insert` eowarn end diff --git a/lib/arel/table.rb b/lib/arel/table.rb index 82d160b87e..7a1983b3d2 100644 --- a/lib/arel/table.rb +++ b/lib/arel/table.rb @@ -32,7 +32,7 @@ module Arel def primary_key if $VERBOSE warn <<-eowarn -primary_key (#{caller.first}) is deprecated and will be removed in ARel 3.0.0 +primary_key (#{caller.first}) is deprecated and will be removed in ARel 4.0.0 eowarn end @primary_key ||= begin @@ -54,7 +54,7 @@ primary_key (#{caller.first}) is deprecated and will be removed in ARel 3.0.0 def joins manager if $VERBOSE - warn "joins is deprecated and will be removed in 3.0.0" + warn "joins is deprecated and will be removed in 4.0.0" warn "please remove your call to joins from #{caller.first}" end nil @@ -104,7 +104,7 @@ primary_key (#{caller.first}) is deprecated and will be removed in ARel 3.0.0 if $VERBOSE warn <<-eowarn (#{caller.first}) Arel::Table#columns is deprecated and will be removed in -Arel 3.0.0 with no replacement. PEW PEW PEW!!! +Arel 4.0.0 with no replacement. PEW PEW PEW!!! eowarn end @columns ||= @@ -138,7 +138,7 @@ Arel 3.0.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 3.0.0 with no replacement. PEW PEW PEW!!! +Arel 4.0.0 with no replacement. PEW PEW PEW!!! eowarn end @@table_cache ||= Hash[engine.connection.tables.map { |x| [x,true] }] diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index ccaa328a78..260cb6959f 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -47,7 +47,7 @@ module Arel unless key warn(<<-eowarn) if $VERBOSE (#{caller.first}) Using UpdateManager without setting UpdateManager#key is -deprecated and support will be removed in ARel 3.0.0. Please set the primary +deprecated and support will be removed in ARel 4.0.0. Please set the primary key on UpdateManager using UpdateManager#key= eowarn key = o.relation.primary_key |