Просто создайте еще один сериализатор без has_many
class SimpleTrainingModuleSerializer < ActiveModel::Serializer
attributes :id, :name, :description, :status, :module_type
end
и используйте его в контроллере
render json: @record, serializer: SimpleTrainingModuleSerializer
This blog post may be worth a look:
Why does the OpenFileDialog in WPF look so “1999” and how can I fix it?
You need to add a manifest to your assembly. You can do this via Add New Item-->General-->Application Manifest file.
Then add the following somewhere inside the asmv1 tag in the manifest file:
<dependency>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Windows.Common-Controls" version="6.0.0.0" type="win32" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" />
</dependentAssembly>
</dependency>