spec/app/models/bar.rb in mongoid-3.1.7 vs spec/app/models/bar.rb in mongoid-4.0.0.alpha1
- old
+ new
@@ -1,6 +1,7 @@
class Bar
include Mongoid::Document
+ include Mongoid::Attributes::Dynamic
field :name, type: String
field :location, type: Array
field :lat_lng, type: LatLng
has_one :rating, as: :ratable