Guest User

Untitled

a guest
Nov 19th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. def protect_from_forgery(options = {})
  2. self.request_forgery_protection_token ||= :authenticity_token
  3. prepend_before_filter :verify_authenticity_token, options
  4. end
  5.  
  6. def verify_authenticity_token
Add Comment
Please, Sign In to add comment