Advertisement
Guest User

Untitled

a guest
Jul 10th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.19 KB | None | 0 0
  1. def last_name
  2.   if user.privacy.include?('last_name')
  3.     nil
  4.   else
  5.     super()
  6.   end
  7. end
  8.  
  9. def first_name
  10.   if user.privacy.include?('first_name')
  11.     nil
  12.   else
  13.     super()
  14.   end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement