Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def protect_from_forgery(options = {})
- self.request_forgery_protection_token ||= :authenticity_token
- prepend_before_filter :verify_authenticity_token, options
- end
- def verify_authenticity_token
Add Comment
Please, Sign In to add comment