Module: Cortex::DashboardHelper

Defined in:
app/helpers/cortex/dashboard_helper.rb

Instance Method Summary collapse

Instance Method Details

#employer_blog_content_typeObject



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_typeObject



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_feedObject



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

#news_feed_tenantObject



7
8
9
# File 'app/helpers/cortex/dashboard_helper.rb', line 7

def news_feed_tenant
  @news_feed_tenant ||= Tenant.find_by_id(Cortex.config[:cortex][:news_feed][:tenant])
end