Sha256: 66b148bfd75d50d80b32a8d823d194b152a884f33d98cd7142acd397c5ced199

Contents?: true

Size: 642 Bytes

Versions: 7

Compression:

Stored size: 642 Bytes

Contents

class ::IshManager::EmailConversationsController < IshManager::ApplicationController

  layout 'ish_manager/application_fullwidth'

  before_action :set_lists

  def index
    authorize! :email_conversations_index, IshManager::Ability
    @email_conversations = ::Office::EmailConversation.all.order_by( latest_date: :desc )
  end

  def show
    authorize! :email_conversations_show, IshManager::Ability
    @email_conversation = ::Office::EmailConversation.find( params[:id] )
    @email_messages = @email_conversation.email_messages.order_by( date: :asc )
    @email_conversation.update_attributes({ state: Conv::STATE_READ })
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ish_manager-0.1.8.362 app/controllers/ish_manager/email_conversations_controller.rb
ish_manager-0.1.8.361 app/controllers/ish_manager/email_conversations_controller.rb
ish_manager-0.1.8.360 app/controllers/ish_manager/email_conversations_controller.rb
ish_manager-0.1.8.359 app/controllers/ish_manager/email_conversations_controller.rb
ish_manager-0.1.8.358 app/controllers/ish_manager/email_conversations_controller.rb
ish_manager-0.1.8.357 app/controllers/ish_manager/email_conversations_controller.rb
ish_manager-0.1.8.356 app/controllers/ish_manager/email_conversations_controller.rb