daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Dec 11th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # app/models/user.rb
  2.  
  3. # Only allow letter, number, underscore and punctuation.
  4. validates_format_of :username, with: /^[a-zA-Z0-9_\.]*$/, :multiline => true
RAW Paste Data
Top