module Adminterface::Extensions::Views::Components::StatusTag
Protected Instance Methods
status_to_class(status)
click to toggle source
# File lib/adminterface/extensions/views/components/status_tag.rb, line 8 def status_to_class(status) case status when "Unset", nil then status_tag_css_classes[:unset] when "Yes" then status_tag_css_classes[:yes] when "No" then status_tag_css_classes[:no] else status.to_s.titleize.gsub(/\s/, "").underscore end end