Guest User

Untitled

a guest
Jul 23rd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. # features/support/application_controller.rb
  2.  
  3. class ApplicationController < ActionController::Base
  4. prepend_before_filter :stub_current_user
  5. def stub_current_user
  6. session[:applicant_id] = cookies[:applicant_id] if cookies[:applicant_id]
  7. end
  8. end
Add Comment
Please, Sign In to add comment