test/dummy-mongoid/app/models/comment.rb in merit-0.8.0 vs test/dummy-mongoid/app/models/comment.rb in merit-0.8.1
- old
+ new
@@ -8,10 +8,6 @@
field :votes, :type => Integer, :default => 0
attr_accessible :name, :comment, :user_id, :votes
validates :name, :comment, :user_id, :presence => true
-
- def self.find_by_id(id)
- where(:_id => id).first
- end
end