decidim-meetings/app/models/decidim/meetings/meeting.rb in decidim-0.0.5 vs decidim-meetings/app/models/decidim/meetings/meeting.rb in decidim-0.0.6
- old
+ new
@@ -6,17 +6,18 @@
# title, description and any other useful information to render a custom meeting.
class Meeting < Meetings::ApplicationRecord
include Decidim::Resourceable
include Decidim::HasAttachments
include Decidim::HasFeature
+ include Decidim::HasReference
include Decidim::HasScope
include Decidim::HasCategory
feature_manifest_name "meetings"
validates :title, presence: true
- geocoded_by :address
+ geocoded_by :address, http_headers: lambda { |proposal| { "Referer" => proposal.feature.organization.host } }
def closed?
closed_at.present?
end
end