Method: ApplicationHelper#deleted_item?
- Defined in:
- app/helpers/application_helper.rb
#deleted_item?(item) ⇒ Boolean
Check if the specified item is deleted.
235 236 237 238 239 240 241 242 243 244 |
# File 'app/helpers/application_helper.rb', line 235 def deleted_item?(item) case item.class.to_s when 'Post', 'Comment', 'CommunityUser' item.deleted when 'User' item.deleted || item.community_user.deleted else false end end |