| Class | ProfileDesignController |
| In: |
app/controllers/my_profile/profile_design_controller.rb
|
| Parent: | BoxOrganizerController |
# File app/controllers/my_profile/profile_design_controller.rb, line 7
7: def available_blocks
8: blocks = [ ArticleBlock, TagsBlock, RecentDocumentsBlock, ProfileInfoBlock, LinkListBlock, MyNetworkBlock ]
9:
10: # blocks exclusive for organizations
11: if profile.has_members?
12: blocks << MembersBlock
13: end
14:
15: # blocks exclusive to person
16: if profile.person?
17: blocks << FriendsBlock
18: blocks << FavoriteEnterprisesBlock
19: end
20:
21: # product block exclusive for enterprises in environments that permits it
22: if profile.enterprise? && !profile.environment.enabled?('disable_products_for_enterprises')
23: blocks << ProductsBlock
24: end
25:
26: blocks
27: end