class Decidim::Meetings::AdminLog::MeetingPresenter
MeetingPresenter.new(action_log, view_helpers).present
view_helpers # => this comes from the views
action_log = Decidim::ActionLog.last
directly, but here’s an example:
Usage should be automatic and you shouldn’t need to call this class
for the ‘AdminLog` log.
This class holds the logic to present a `Decidim::Meetings::Meeting`
def action_string
def action_string case action when "close", "create", "delete", "export_registrations", "update" "decidim.meetings.admin_log.meeting.#{action}" else super end end
def diff_actions
def diff_actions super + %w(close) end
def diff_fields_mapping
def diff_fields_mapping { address: :string, attendees_count: :integer, attending_organizations: :string, closed_at: :date, closing_report: :i18n, description: "Decidim::Meetings::AdminLog::ValueTypes::MeetingTitleDescriptionPresenter", end_date: :date, location: :i18n, location_hints: :i18n, start_date: :date, title: "Decidim::Meetings::AdminLog::ValueTypes::MeetingTitleDescriptionPresenter", private_meeting: :boolean, transparent: :boolean, published_at: :date, video_url: :string, audio_url: :string, closing_visible: :boolean } end
def i18n_labels_scope
def i18n_labels_scope "activemodel.attributes.meeting" end