Sha256: fa05d12b1258d260b25ab71934fceefe117d44a83f8abcd7cff81cf668fcb43c
Contents?: true
Size: 567 Bytes
Versions: 36
Compression:
Stored size: 567 Bytes
Contents
require 'action_view' module WoopleTheme module Dashboard class ElectivesSectionPresenter < SectionPresenter enforce_definitions :electives_history, :electives_exceptions, :points_earned, :points_total def render_history yield if render?(@delegate.electives_history) end def render_exceptions yield if render?(@delegate.electives_exceptions) end private def render?(tab) tab.count > 0 end end end end
Version data entries
36 entries across 36 versions & 1 rubygems