Class: ActiveAdmin::Views::Pages::Base

Inherits:
Arbre::HTML::Document
  • Object
show all
Defined in:
lib/active_admin/views/pages/base.rb

Direct Known Subclasses

Form, Index, Layout, Page, Show

Instance Method Summary collapse

Instance Method Details

#build(*args) ⇒ Object


6
7
8
9
10
# File 'lib/active_admin/views/pages/base.rb', line 6

def build(*args)
  set_attribute :lang, I18n.locale
  build_active_admin_head
  build_page
end

#html_titleObject

Arbre::HTML::Title


12
# File 'lib/active_admin/views/pages/base.rb', line 12

alias_method :html_title, :title

#main_contentObject


17
18
19
# File 'lib/active_admin/views/pages/base.rb', line 17

def main_content
  I18n.t('active_admin.main_content', model: title).html_safe
end

#titleObject


13
14
15
# File 'lib/active_admin/views/pages/base.rb', line 13

def title
  self.class.name
end