• Dallas Reedy's avatar
    Move more logic out of the view & back into the helper · 8cb327ea
    Dallas Reedy authored
    Reduce the logic necessary for the view down to two helpers:
    
    1. show_trial_status_widget?(group)
    1. trial_status_widget_experiment_enabled?(group) ← has a side effect
    
    Also fixed the `new_subscriptions_path` to use the root_group rather
    than the group.
    8cb327ea
_group.html.haml_spec.rb 10.8 KB