aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/fixtures
diff options
context:
space:
mode:
authorCarlos Galdino + Rafael Mendonça França <rafael.franca+carlos.galdino@plataformatec.com.br>2012-07-21 16:47:58 -0300
committerCarlos Galdino + Rafael Mendonça França <rafael.franca+carlos.galdino@plataformatec.com.br>2012-07-21 16:47:58 -0300
commit5b9d0a6272ca74f33cd62a4ff3fd3072fe533c09 (patch)
treeab8eec084a60dc9c601f88f3879a2885055cfeee /actionpack/test/fixtures
parent0106e5fe4436df1853a68c0ed792dc0cf3b9e1a4 (diff)
downloadrails-5b9d0a6272ca74f33cd62a4ff3fd3072fe533c09.tar.gz
rails-5b9d0a6272ca74f33cd62a4ff3fd3072fe533c09.tar.bz2
rails-5b9d0a6272ca74f33cd62a4ff3fd3072fe533c09.zip
Remove deprecation warnings
Diffstat (limited to 'actionpack/test/fixtures')
-rw-r--r--actionpack/test/fixtures/project.rb2
-rw-r--r--actionpack/test/fixtures/reply.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/fixtures/project.rb b/actionpack/test/fixtures/project.rb
index 2b53d39ed5..c124a9e605 100644
--- a/actionpack/test/fixtures/project.rb
+++ b/actionpack/test/fixtures/project.rb
@@ -1,3 +1,3 @@
class Project < ActiveRecord::Base
- has_and_belongs_to_many :developers, :uniq => true
+ has_and_belongs_to_many :developers, -> { uniq }
end
diff --git a/actionpack/test/fixtures/reply.rb b/actionpack/test/fixtures/reply.rb
index 0d3b0a7c98..16b53be18a 100644
--- a/actionpack/test/fixtures/reply.rb
+++ b/actionpack/test/fixtures/reply.rb
@@ -1,6 +1,6 @@
class Reply < ActiveRecord::Base
scope :base, -> { scoped }
- belongs_to :topic, :include => [:replies]
+ belongs_to :topic, -> { includes(:replies) }
belongs_to :developer
validates_presence_of :content