aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/company_in_module.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-07-20 17:59:27 +0100
committerJon Leighton <j@jonathanleighton.com>2012-08-01 19:46:31 +0100
commit4efebdedf8d8b8e2be711fafb560daddb15e48ad (patch)
tree0be236a7be4e0d1685be80641c9bd9e35d24aa35 /activerecord/test/models/company_in_module.rb
parent7f3b475608d7c0b7faadd7c1430797e91b644a35 (diff)
downloadrails-4efebdedf8d8b8e2be711fafb560daddb15e48ad.tar.gz
rails-4efebdedf8d8b8e2be711fafb560daddb15e48ad.tar.bz2
rails-4efebdedf8d8b8e2be711fafb560daddb15e48ad.zip
Deprecate :finder_sql, :counter_sql, :insert_sql, :delete_sql.
Diffstat (limited to 'activerecord/test/models/company_in_module.rb')
-rw-r--r--activerecord/test/models/company_in_module.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/models/company_in_module.rb b/activerecord/test/models/company_in_module.rb
index e5ceda2928..eb2aedc425 100644
--- a/activerecord/test/models/company_in_module.rb
+++ b/activerecord/test/models/company_in_module.rb
@@ -11,7 +11,9 @@ module MyApplication
has_many :clients_sorted_desc, -> { order("id DESC") }, :class_name => "Client"
has_many :clients_of_firm, -> { order "id" }, :foreign_key => "client_of", :class_name => "Client"
has_many :clients_like_ms, -> { where("name = 'Microsoft'").order("id") }, :class_name => "Client"
- has_many :clients_using_sql, :class_name => "Client", :finder_sql => 'SELECT * FROM companies WHERE client_of = #{id}'
+ ActiveSupport::Deprecation.silence do
+ has_many :clients_using_sql, :class_name => "Client", :finder_sql => 'SELECT * FROM companies WHERE client_of = #{id}'
+ end
has_one :account, :class_name => 'MyApplication::Billing::Account', :dependent => :destroy
end