Skip to content

Commit a5733db

Browse files
author
Lee Richmond
committed
Fix string/symbol mismatch
1 parent 51c5110 commit a5733db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/jsonapi/resource_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def generate_strong_resource
9191
code = " strong_resource :#{file_name} do\n"
9292
attributes.each do |a|
9393
type = a.type
94-
type = 'string' if type == 'text'
94+
type = :string if type == :text
9595
code << " attribute :#{a.name}, :#{type}\n"
9696
end
9797
code << " end\n"

0 commit comments

Comments
 (0)