spec/models/mongoid/post.rb in bullet-5.6.0 vs spec/models/mongoid/post.rb in bullet-5.6.1
- old
+ new
@@ -1,12 +1,12 @@
class Mongoid::Post
include Mongoid::Document
field :name
- has_many :comments, :class_name => "Mongoid::Comment"
- belongs_to :category, :class_name => "Mongoid::Category"
+ has_many :comments, :class_name => 'Mongoid::Comment'
+ belongs_to :category, :class_name => 'Mongoid::Category'
- embeds_many :users, :class_name => "Mongoid::User"
+ embeds_many :users, :class_name => 'Mongoid::User'
scope :preload_comments, lambda { includes(:comments) }
end