Module: EffectiveAlertsHelper

Defined in:
app/helpers/effective_alerts_helper.rb

Instance Method Summary collapse

Instance Method Details

#effective_alertsObject



5
6
7
# File 'app/helpers/effective_alerts_helper.rb', line 5

def effective_alerts
  @_effective_alerts ||= Effective::Alert.all.enabled
end

#render_effective_alertsObject



9
10
11
12
13
14
# File 'app/helpers/effective_alerts_helper.rb', line 9

def render_effective_alerts
  effective_alerts
    .map { |alert| render 'effective/alerts/alert', alert: alert }
    .join
    .html_safe
end