Sha256: a562add7848dd8159c28c0d94010182692e7998b0d0d7c53dfd3a6114b072378
Contents?: true
Size: 474 Bytes
Versions: 48
Compression:
Stored size: 474 Bytes
Contents
json.messages do json.array! flash.discard do |type,message| json.set! 'type', type json.set! 'text', message end end if @<%= singular_table_name %>.errors.any? json.api_errors! '<%= singular_table_name %>', @<%= singular_table_name %>.errors else json.data do json.array! [ @<%= singular_table_name %> ] do |<%= singular_table_name %>| json.partial! 'details', locals: { <%= singular_table_name %>: <%= singular_table_name %> } end end end
Version data entries
48 entries across 48 versions & 1 rubygems