Class: Backend::BaseController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Backend::BaseController
show all
- Includes:
- Udongo::Cryptography
- Defined in:
- app/controllers/backend/base_controller.rb
Direct Known Subclasses
AdminsController, Articles::BaseController, ArticlesController, AssetsController, Content::DuplicateController, Content::Rows::ColumnsController, Content::Rows::FormsController, Content::Rows::PicturesController, Content::Rows::SlideshowsController, Content::Rows::TextsController, Content::Rows::VideosController, Content::RowsController, DashboardController, EmailTemplatesController, EmailsController, Forms::BaseController, FormsController, ImageCollections::BaseController, ImageCollectionsController, ImagesController, Navigation::ItemsController, NavigationsController, Pages::BaseController, PagesController, Redirects::TestController, RedirectsController, SearchController, SearchSynonymsController, SearchTermsController, SeoController, SessionsController, SnippetsController, TagboxController, TagsController, Users::BaseController, UsersController
Instance Method Summary
collapse
#crypt
Instance Method Details
#breadcrumb ⇒ Object
7
8
9
|
# File 'app/controllers/backend/base_controller.rb', line 7
def breadcrumb
@breadcrumb ||= Udongo::Breadcrumb.new
end
|
#current_admin ⇒ Object
12
13
14
|
# File 'app/controllers/backend/base_controller.rb', line 12
def current_admin
@current_admin ||= Admin.find(session[:admin_id]) if session[:admin_id]
end
|
#default_app_locale ⇒ Object
21
22
23
|
# File 'app/controllers/backend/base_controller.rb', line 21
def default_app_locale
Udongo.config.i18n.app.default_locale
end
|
#translate_notice(notice, actor = nil) ⇒ Object
17
18
19
|
# File 'app/controllers/backend/base_controller.rb', line 17
def translate_notice(notice, actor = nil)
Udongo::Notification.new(notice).translate(actor)
end
|