Class: LetterThief::EmailMessagesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/letter_thief/email_messages_controller.rb

Constant Summary collapse

PAGE_SIZE =
20

Instance Method Summary collapse

Instance Method Details

#indexObject



13
14
15
# File 'app/controllers/letter_thief/email_messages_controller.rb', line 13

def index
  @search = LetterThief::EmailSearch.new(params).perform
end

#showObject



17
18
19
# File 'app/controllers/letter_thief/email_messages_controller.rb', line 17

def show
  @email = EmailMessage.find(params[:id])
end