tboucheau/Meal_plan

View on GitHub
app/helpers/application_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module ApplicationHelper
    def alert_class(flash_type)
        case flash_type.to_sym
            when :notice
                "alert-success"
            when :alert
                "alert-warning"
            when :error
                "alert-danger"
        end
    end
end