Module: GeoLabels::RatingsSupport
- Extended by:
- ActiveSupport::Concern
- Included in:
- Contact
- Defined in:
- app/models/concerns/geo_labels/ratings_support.rb
Overview
Extend an ActiveRecord model with rating support
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#rating(topic = nil) ⇒ Object
78 79 80 81 82 83 84 |
# File 'app/models/concerns/geo_labels/ratings_support.rb', line 78 def (topic = nil) if topic.present? RatingObject.new(self, topic) else RatingList.new(self) end end |