Class: ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
Hesburgh::Lib::ControllerWithRunner
Defined in:
app/controllers/application_controller.rb

Overview

The foundational controller for this application

Instance Method Summary collapse

Instance Method Details

#message_for(key, options = {}) ⇒ Object (private)



20
21
22
# File 'app/controllers/application_controller.rb', line 20

def message_for(key, options = {})
  t(key, { scope: "sipity/#{controller_name}.action/#{action_name}" }.merge(options))
end

#repositoryObject

So you can easily invoke the public repository of Hydramata. It is these repository that indicate what the application can and is doing.

See Also:

  • for the default methods


15
16
17
# File 'app/controllers/application_controller.rb', line 15

def repository
  @repository = Sipity::Repository.new
end