Skip to content
Snippets Groups Projects
Commit b81916fc authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Issue #1361

parent a09be0a7
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,10 @@ class Communication::Block::Template::Agenda < Communication::Block::Template::B
@selected_events ||= events_with_time_scope
end
def dependencies
selected_events
end
def allowed_for_about?
website.present?
end
......
......@@ -124,6 +124,11 @@ class Communication::Website::Agenda::Event < ApplicationRecord
blocks
end
def references
menus +
abouts_with_agenda_block
end
def to_s
"#{title}"
end
......@@ -142,4 +147,8 @@ class Communication::Website::Agenda::Event < ApplicationRecord
def explicit_blob_ids
super.concat [featured_image&.blob_id]
end
def abouts_with_agenda_block
website.blocks.agenda.collect(&:about)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment