Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = String.new
- settings.each { |k,v| a += k + ',' if v == "1"}
- write_attribute(:privacy, a.chop)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement