Class: PostmarkBounce::EmailsController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/postmark_bounce/emails_controller.rb

Instance Method Summary collapse

Instance Method Details

#hideObject



4
5
6
7
8
# File 'app/controllers/postmark_bounce/emails_controller.rb', line 4

def hide
  @email = PostmarkBounce::Email.find_by(message_id: params[:message_id])    
  @email.update_attributes(hidden: true)
  redirect_to :back
end