app/models/popolo/area.rb in popolo-0.0.3 vs app/models/popolo/area.rb in popolo-0.1.0
- old
+ new
@@ -5,14 +5,14 @@
include Mongoid::Timestamps
include Mongoid::Tree
store_in Popolo.storage_options_per_class.fetch(:Area, Popolo.storage_options)
- # The geographic area to which the membership is related.
+ # The memberships to which this area is related.
has_many :memberships, class_name: 'Popolo::Membership'
- # The geographic area to which the organization is related.
+ # The organizations to which this area is related.
has_many :organizations, class_name: 'Popolo::Organization'
- # The geographic area to which the post is related.
+ # The posts to which this area is related.
has_many :posts, class_name: 'Popolo::Post'
# URLs to documents from which the area is derived.
embeds_many :sources, as: :linkable, class_name: 'Popolo::Link'