spec/app/models/person.rb in mongoid_paranoia-0.4.0 vs spec/app/models/person.rb in mongoid_paranoia-0.4.1

- old
+ new

@@ -1,21 +1,21 @@ -class Person - include Mongoid::Document - - field :age, type: Integer, default: "100" - field :score, type: Integer - - attr_reader :rescored - - embeds_many :phone_numbers, class_name: "Phone", validate: false - embeds_many :phones, store_as: :mobile_phones, validate: false - embeds_many :addresses, as: :addressable, validate: false - - embeds_many :appointments, validate: false - embeds_many :paranoid_phones, validate: false - - has_many :paranoid_posts, validate: false - belongs_to :paranoid_post - - accepts_nested_attributes_for :addresses - accepts_nested_attributes_for :paranoid_phones -end +class Person + include Mongoid::Document + + field :age, type: Integer, default: "100" + field :score, type: Integer + + attr_reader :rescored + + embeds_many :phone_numbers, class_name: "Phone", validate: false + embeds_many :phones, store_as: :mobile_phones, validate: false + embeds_many :addresses, as: :addressable, validate: false + + embeds_many :appointments, validate: false + embeds_many :paranoid_phones, validate: false + + has_many :paranoid_posts, validate: false + belongs_to :paranoid_post + + accepts_nested_attributes_for :addresses + accepts_nested_attributes_for :paranoid_phones +end