Module: Qadmin::PageTitles::ControllerMethods

Defined in:
lib/qadmin/page_titles.rb

Instance Method Summary collapse

Instance Method Details

#get_page_title(delimeter = ' : ') ⇒ Object



22
23
24
25
# File 'lib/qadmin/page_titles.rb', line 22

def get_page_title(delimeter = ' : ')
  @page_title ||= []
  @page_title.join(delimeter)
end

#set_page_title(add_this) ⇒ Object



28
29
30
31
# File 'lib/qadmin/page_titles.rb', line 28

def set_page_title(add_this)
  get_page_title
  @page_title << "#{add_this}"
end