atzorvas/ccradio

View on GitHub
app/helpers/application_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
Missing top-level module documentation comment.
module ApplicationHelper
Use def with parentheses when there are parameters.
def bootstrap_class_for flash_type
case flash_type.to_sym
Do not use `when x;`. Use `when x then` instead.
when :success; 'alert-success'
Do not use `when x;`. Use `when x then` instead.
when :error; 'alert-danger'
Do not use `when x;`. Use `when x then` instead.
when :alert; 'alert-warning'
Do not use `when x;`. Use `when x then` instead.
when :notice; 'alert-info'
else; flash_type.to_s
end
end
end