Commit d43ed82b by liyijie

Fix spell error

parent ac7b4c80
......@@ -5,7 +5,7 @@ RSpec.describe '<%= controller_path %>', type: :request, capture_examples: true,
type: :object, properties: {
<%= resource_singular %>: {
type: :object, properties: {
<%- column_hash = resource_class.columns_hash rescue [] -%>
<%- columns_hash = resource_class.columns_hash rescue [] -%>
<%- if columns_hash.present? -%>
<%- resource_class.columns_hash.except('id', 'created_at', 'updated_at').values.each do |column| -%>
<%= column.name %>: { type: :<%= column.type %>, description: '<%= column&.comment %>' },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment