Created
April 29, 2016 10:52
-
-
Save samrayner/7f6279886878b5fdbfa845f14a3cd40f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def bool_label(toggle) | |
if toggle | |
content_tag(:span, defined?(icon) ? icon('check') : 'Yes', class: 'label label-success') | |
else | |
content_tag(:span, defined?(icon) ? icon('times') : 'No', class: 'label label-default') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment