Class: ActiveAdmin::Page

Inherits:
Object
  • Object
show all
Defined in:
lib/active_admin/subnav/extensions/page.rb

Instance Method Summary collapse

Instance Method Details

#belongs_to(target, options = {}) ⇒ Object



3
4
5
6
7
# File 'lib/active_admin/subnav/extensions/page.rb', line 3

def belongs_to(target, options = {})
  @belongs_to = Resource::BelongsTo.new(self, target, options)
  self.sub_navigation_menu_name = target
  controller.send :belongs_to, target, options.dup
end

#show_sub_menu?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/active_admin/subnav/extensions/page.rb', line 9

def show_sub_menu?(*)
  false
end