Guest User

Untitled

a guest
Apr 20th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. if obj.errors.class == Array
  2. obj.errors.each {|error| markup << build_li.call(error) }
  3. else
  4. obj.errors.full_messages.each { |msg| markup << "<li>#{msg}</li>" }
  5. end
Add Comment
Please, Sign In to add comment