Class: Decidim::Conferences::RegistrationType

Inherits:
ApplicationRecord show all
Includes:
Loggable, Publicable, Traceable, TranslatableResource
Defined in:
decidim-conferences/app/models/decidim/conferences/registration_type.rb

Overview

It represents a registration type of the conference

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Publicable

#previously_published?, #publish!, #published?, #unpublish!

Class Method Details

.log_presenter_class_for(_log) ⇒ Object



27
28
29
# File 'decidim-conferences/app/models/decidim/conferences/registration_type.rb', line 27

def self.log_presenter_class_for(_log)
  Decidim::Conferences::AdminLog::RegistrationTypePresenter
end

Instance Method Details

#visible?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'decidim-conferences/app/models/decidim/conferences/registration_type.rb', line 23

def visible?
  conference.registrations_enabled? && published?
end