Module: Readable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/readable.rb
Constant Summary collapse
- NEW =
Constants
"new"
- UNREAD =
"unread"
- READ =
"read"
- ARCHIVED =
"archived"
- REMOVED =
"removed"
- STATUS =
{"New" => NEW, "Unread" => UNREAD, "Read" => READ, "Archived" => ARCHIVED, "Removed" => REMOVED}
- STATUS_REVERSE =
{NEW => "New", UNREAD => "Unread", READ => "Read",ARCHIVED => "Archive", REMOVED => "Trash"}
- STATUS_UI_CLASS =
{NEW => "success", UNREAD => "info", READ => "default", ARCHIVED => "default", REMOVED => "danger"}
Instance Method Summary collapse
Instance Method Details
#display_status ⇒ Object
44 45 46 |
# File 'app/models/concerns/readable.rb', line 44 def display_status STATUS_REVERSE[self.status] end |