Class: Tramway::Core::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Tramway::Core::ApplicationController
- Defined in:
- app/controllers/tramway/core/application_controller.rb
Instance Method Summary collapse
Instance Method Details
#application ⇒ Object
7 8 9 |
# File 'app/controllers/tramway/core/application_controller.rb', line 7 def application @application = ::Tramway::Core.application_object end |
#load_extensions ⇒ Object
11 12 13 |
# File 'app/controllers/tramway/core/application_controller.rb', line 11 def load_extensions ::Tramway::Extensions.load if defined? ::Tramway::Extensions end |
#model_class ⇒ Object
15 16 17 |
# File 'app/controllers/tramway/core/application_controller.rb', line 15 def model_class params[:model].constantize end |