Skip to content

Commit

Permalink
Removes last call to automate from dialog_field serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-u committed May 17, 2018
1 parent 5430d1d commit fef9113
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/dialog_field_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def serialize(dialog_field, all_attributes = false)
dialog_field.options[:force_single_value] = dialog_field.options[:force_single_value] || category.single_value
end
end
included_attributes(dialog_field.as_json(:methods => [:type, :values]), all_attributes).merge(extra_attributes)
json_options = dialog_field.dynamic? ? {:methods => [:type], :except => [:values]} : {:methods => [:type, :values]}
included_attributes(dialog_field.as_json(json_options), all_attributes).merge(extra_attributes)
end
end

0 comments on commit fef9113

Please sign in to comment.