Class: Eventsimple::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Eventsimple::ApplicationController
show all
- Defined in:
- app/controllers/eventsimple/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#event_class_names ⇒ Object
5
6
7
|
# File 'app/controllers/eventsimple/application_controller.rb', line 5
def event_class_names
@event_class_names ||= event_classes.map(&:name)
end
|
#event_classes ⇒ Object
9
10
11
12
13
|
# File 'app/controllers/eventsimple/application_controller.rb', line 9
def event_classes
Rails.application.eager_load!
Eventsimple.configuration.ui_visible_models
end
|