Module: SanitizeEmailController::Actions

Defined in:
lib/rails-caddy/controllers/sanitize_email_controller.rb

Instance Method Summary collapse

Instance Method Details

#set_sanitize_email_addressObject



9
10
11
12
# File 'lib/rails-caddy/controllers/sanitize_email_controller.rb', line 9

def set_sanitize_email_address
  session[:sanitize_email_address] = params[:value]
  render :status => 200, :text => params[:value]
end

#unset_sanitize_email_addressObject



14
15
16
17
# File 'lib/rails-caddy/controllers/sanitize_email_controller.rb', line 14

def unset_sanitize_email_address
  session[:sanitize_email_address] = nil
  render :status => 200, :text => "nil"
end