remove bootstrap_class_for helper function and related usage

This commit is contained in:
hitman 2017-03-07 16:06:22 +05:30
parent 33b9a2b93b
commit 37fb336af7
2 changed files with 1 additions and 24 deletions

View file

@ -133,21 +133,6 @@ module ApplicationHelper
result
end
def bootstrap_class_for(flash_type)
case flash_type
when 'success'
'alert-success'
when 'error'
'alert-danger'
when 'alert'
'alert-warning'
when 'notice'
'alert-info'
else
'alert-warning'
end
end
def label_for(event_state)
result = ''
case event_state