spec/models/person.rb in matic-0.1.1 vs spec/models/person.rb in matic-0.2.0
- old
+ new
@@ -1,9 +1,9 @@
class Person < Mongomatic::Base
include Matic
- field :first_name
- field :last_name
+ fields :first_name,
+ :last_name
private
def before_update
@called_back = true