Module: Cortex::DashboardHelper
- Defined in:
- app/helpers/cortex/dashboard_helper.rb
Instance Method Summary collapse
- #employer_blog_content_type ⇒ Object
- #media_content_type ⇒ Object
- #news_feed ⇒ Object
- #news_feed_tenant ⇒ Object
Instance Method Details
#employer_blog_content_type ⇒ Object
15 16 17 |
# File 'app/helpers/cortex/dashboard_helper.rb', line 15 def employer_blog_content_type @employer_blog_content_type ||= current_user.active_tenant.search_up_organization_for(Cortex::ContentType, :name, 'Employer Blog').first end |
#media_content_type ⇒ Object
11 12 13 |
# File 'app/helpers/cortex/dashboard_helper.rb', line 11 def media_content_type @media_content_type ||= current_user.active_tenant.search_up_organization_for(Cortex::ContentType, :name, 'Media').first end |
#news_feed ⇒ Object
3 4 5 |
# File 'app/helpers/cortex/dashboard_helper.rb', line 3 def news_feed [] # need to re-implement this feature using Beta Cortex blogposts end |