class Decidim::Meetings::ContentBlocks::HighlightedMeetingsCell
def base_relation
def base_relation Decidim::Meetings::Meeting .except_withdrawn .published .not_hidden .upcoming .visible_for(current_user) .where(component: published_components) end
def elements
def elements @elements ||= base_relation.order(start_time: :asc).limit(limit) end
def geolocation_enabled?
def geolocation_enabled? Decidim::Map.available?(:geocoding) end
def limit
def limit geolocation_enabled? ? 4 : 8 end