Class: Georgia::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Georgia::ApplicationController
show all
- Defined in:
- app/controllers/georgia/application_controller.rb
Direct Known Subclasses
Georgia::Api::MediaController, Georgia::Api::TagsController, DashboardController, LinksController, MediaController, MenusController, PagesController, RevisionsController, SlidesController, UiAssociationsController, UsersController, WidgetsController
Instance Method Summary
collapse
Instance Method Details
#current_ability ⇒ Object
9
10
11
|
# File 'app/controllers/georgia/application_controller.rb', line 9
def current_ability
@current_ability ||= Ability.new(current_user)
end
|
#current_locale ⇒ Object
13
14
15
|
# File 'app/controllers/georgia/application_controller.rb', line 13
def current_locale
@current_locale ||= params.fetch(:locale, I18n.locale.to_s)
end
|