Sha256: 5a544ea225b2623279a0f717f5dfdcbf936aa236b1a0fa84d35418277a32641a

Contents?: true

Size: 329 Bytes

Versions: 21

Compression:

Stored size: 329 Bytes

Contents

module Eventsimple
  class ApplicationController < ActionController::Base
    helper_method :event_class_names

    def event_class_names
      @event_class_names ||= event_classes.map(&:name)
    end

    def event_classes
      Rails.application.eager_load!

      Eventsimple.configuration.ui_visible_models
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
eventsimple-1.5.6 app/controllers/eventsimple/application_controller.rb
eventsimple-1.5.5 app/controllers/eventsimple/application_controller.rb
eventsimple-1.5.4 app/controllers/eventsimple/application_controller.rb
eventsimple-1.5.3 app/controllers/eventsimple/application_controller.rb
eventsimple-1.4.3 app/controllers/eventsimple/application_controller.rb
eventsimple-1.4.2 app/controllers/eventsimple/application_controller.rb
eventsimple-1.4.1 app/controllers/eventsimple/application_controller.rb
eventsimple-1.4.0 app/controllers/eventsimple/application_controller.rb
eventsimple-1.3.3 app/controllers/eventsimple/application_controller.rb
eventsimple-1.3.2 app/controllers/eventsimple/application_controller.rb
eventsimple-1.3.1 app/controllers/eventsimple/application_controller.rb
eventsimple-1.3.0 app/controllers/eventsimple/application_controller.rb
eventsimple-1.2.3 app/controllers/eventsimple/application_controller.rb
eventsimple-1.2.2 app/controllers/eventsimple/application_controller.rb
eventsimple-1.2.1 app/controllers/eventsimple/application_controller.rb
eventsimple-1.2.0 app/controllers/eventsimple/application_controller.rb
eventsimple-1.1.3 app/controllers/eventsimple/application_controller.rb
eventsimple-1.1.2 app/controllers/eventsimple/application_controller.rb
eventsimple-1.1.1 app/controllers/eventsimple/application_controller.rb
eventsimple-1.1.0 app/controllers/eventsimple/application_controller.rb