Remove deprecation warnings

This commit is contained in:
Carlos Galdino + Rafael Mendonça França 2012-07-21 16:47:58 -03:00
parent 0106e5fe44
commit 5b9d0a6272
2 changed files with 2 additions and 2 deletions

@ -1,3 +1,3 @@
class Project < ActiveRecord::Base
has_and_belongs_to_many :developers, :uniq => true
has_and_belongs_to_many :developers, -> { uniq }
end

@ -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