Class: Todo
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Todo
- Includes:
- ServerPush
- Defined in:
- lib/server_skeleton/models.rb
Instance Method Summary collapse
-
#public_attributes ⇒ Object
Every model should have this defined.
- #save(*args) ⇒ Object
Methods included from ServerPush
#destroy, #publish_to, #update
Instance Method Details
#public_attributes ⇒ Object
Every model should have this defined
10 11 12 |
# File 'lib/server_skeleton/models.rb', line 10 def public_attributes attributes end |
#save(*args) ⇒ Object
4 5 6 7 |
# File 'lib/server_skeleton/models.rb', line 4 def save(*args) self.text ||= "" super(*args) end |