Class: Georgia::Status
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Georgia::Status
- Defined in:
- app/models/georgia/status.rb
Constant Summary collapse
- PUBLISHED =
'Published'- DRAFT =
'Draft'- PENDING_REVIEW =
'Pending Review'
Instance Method Summary collapse
Instance Method Details
#draft? ⇒ Boolean
21 22 23 |
# File 'app/models/georgia/status.rb', line 21 def draft? self.name == DRAFT end |
#pending_review? ⇒ Boolean
24 25 26 |
# File 'app/models/georgia/status.rb', line 24 def pending_review? self.name == PENDING_REVIEW end |
#published? ⇒ Boolean
18 19 20 |
# File 'app/models/georgia/status.rb', line 18 def published? self.name == PUBLISHED end |