Created
June 19, 2013 04:41
-
-
Save ethagnawl/5811717 to your computer and use it in GitHub Desktop.
Conditional HAML Class
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
- klass = @feed.fav_post ? 'favorited' : '' | |
.UI_feed_item.deletable.clearfix{ class: klass, feed_id: "#{@feed.id}", id: "feed_item_#{@feed.id}" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment