diff options
author | Carlos Galdino + Rafael Mendonça França <rafael.franca+carlos.galdino@plataformatec.com.br> | 2012-07-21 16:47:58 -0300 |
---|---|---|
committer | Carlos Galdino + Rafael Mendonça França <rafael.franca+carlos.galdino@plataformatec.com.br> | 2012-07-21 16:47:58 -0300 |
commit | 5b9d0a6272ca74f33cd62a4ff3fd3072fe533c09 (patch) | |
tree | ab8eec084a60dc9c601f88f3879a2885055cfeee /actionpack/test/fixtures | |
parent | 0106e5fe4436df1853a68c0ed792dc0cf3b9e1a4 (diff) | |
download | rails-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.rb | 2 | ||||
-rw-r--r-- | actionpack/test/fixtures/reply.rb | 2 |
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 |