Class: Chatty::Chat
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Chatty::Chat
- Includes:
- PublicActivity::Model
- Defined in:
- app/models/chatty/chat.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.translated_states ⇒ Object
29 30 31 32 33 34 35 |
# File 'app/models/chatty/chat.rb', line 29 def self.translated_states return { _("New") => "new", _("Handled") => "handled", _("Closed") => "closed" } end |
Instance Method Details
#json ⇒ Object
22 23 24 25 26 27 |
# File 'app/models/chatty/chat.rb', line 22 def json return { :id => id, :state => state } end |