Class: Context
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Context
- Includes:
- AASM
- Defined in:
- app/models/context.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.null_object ⇒ Object
36 37 38 |
# File 'app/models/context.rb', line 36 def self.null_object NullContext.new end |
Instance Method Details
#no_active_todos? ⇒ Boolean
44 45 46 |
# File 'app/models/context.rb', line 44 def no_active_todos? return todos.active.count == 0 end |
#title ⇒ Object
40 41 42 |
# File 'app/models/context.rb', line 40 def title name end |