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



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_titleObject

Arbre::HTML::Title



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

alias_method :html_title, :title

#main_contentObject



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

#titleObject



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

def title
  self.class.name
end