lib/mongoid_rating/rate.rb in mongoid_rating-0.1.4 vs lib/mongoid_rating/rate.rb in mongoid_rating-0.1.5
- old
+ new
@@ -6,8 +6,12 @@
embedded_in :rateable, polymorphic: true
belongs_to :rater, polymorphic: true, inverse_of: nil
# rate can be integer or float so we don't force class here
field :value
+
+ def rails_admin_default_object_label_method
+ "Mongoid::Rating::Rate ##{id.to_s}"
+ end
end
end