Class: Pageflow::Admin::GroupedFolderList Private

Inherits:
ViewComponent
  • Object
show all
Defined in:
app/views/components/pageflow/admin/grouped_folder_list.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 12.2

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#foldersObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 12.2



7
8
9
# File 'app/views/components/pageflow/admin/grouped_folder_list.rb', line 7

def folders
  @folders
end

Instance Method Details

#build(folders, options = {}) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 12.2



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'app/views/components/pageflow/admin/grouped_folder_list.rb', line 9

def build(folders, options = {})
  super(options.slice(:class))

  @folders = folders
  @active_id = options[:active_id]

  build_all_link

  if options[:grouped_by_accounts]
    build_folder_list_grouped_by_accounts
  else
    build_folder_list(folders)
  end
end