Class: ActiveAdmin::Views::Pages::Base
- Inherits:
-
Arbre::HTML::Document
- Object
- Arbre::HTML::Document
- ActiveAdmin::Views::Pages::Base
show all
- Defined in:
- lib/active_admin/views/pages/base.rb
Instance Method Summary
collapse
Instance Method Details
#build(*args) ⇒ Object
7
8
9
10
11
|
# File 'lib/active_admin/views/pages/base.rb', line 7
def build(*args)
set_attribute :lang, I18n.locale
build_active_admin_head
build_page
end
|
#html_title ⇒ Object
13
|
# File 'lib/active_admin/views/pages/base.rb', line 13
alias_method :html_title, :title
|
#main_content ⇒ Object
18
19
20
|
# File 'lib/active_admin/views/pages/base.rb', line 18
def main_content
I18n.t("active_admin.main_content", model: title).html_safe
end
|
#title ⇒ Object
14
15
16
|
# File 'lib/active_admin/views/pages/base.rb', line 14
def title
self.class.name
end
|