Remove deprecation warnings
This commit is contained in:
parent
0106e5fe44
commit
5b9d0a6272
2
actionpack/test/fixtures/project.rb
vendored
2
actionpack/test/fixtures/project.rb
vendored
@ -1,3 +1,3 @@
|
||||
class Project < ActiveRecord::Base
|
||||
has_and_belongs_to_many :developers, :uniq => true
|
||||
has_and_belongs_to_many :developers, -> { uniq }
|
||||
end
|
||||
|
2
actionpack/test/fixtures/reply.rb
vendored
2
actionpack/test/fixtures/reply.rb
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user