Class: ContentProviders::ShowMessageProvider
- Inherits:
-
BitCore::ContentProvider
- Object
- BitCore::ContentProvider
- ContentProviders::ShowMessageProvider
- Defined in:
- app/models/content_providers/show_message_provider.rb
Overview
Provides a view of a sent or received Message.
Instance Method Summary collapse
Instance Method Details
#data_class_name ⇒ Object
5 6 7 |
# File 'app/models/content_providers/show_message_provider.rb', line 5 def data_class_name "Message" end |
#render_current(options) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'app/models/content_providers/show_message_provider.rb', line 13 def render_current() = () .try(:mark_read) if .view_context.render( template: "think_feel_do_engine/messages/show", locals: { coach: .participant.coach, compose_path: compose_path(), message: , reply_path: compose_path() + new_mail_params() } ) else .view_context.render( template: "think_feel_do_engine/messages/not_found" ) end end |
#show_nav_link? ⇒ Boolean
9 10 11 |
# File 'app/models/content_providers/show_message_provider.rb', line 9 def show_nav_link? false end |