lib/mutils/serialization/methods/relations.rb in mutils-1.3.0 vs lib/mutils/serialization/methods/relations.rb in mutils-1.3.1
- old
+ new
@@ -22,11 +22,11 @@
def prepare_options(relationship_name, options, option_name)
class_name = options[:serializer]
if class_name.nil?
raise "Serializer is Required for belongs_to :#{relationship_name}." \
- "\nDefine it like:\n#{option_name} :#{relationship_name}, " \
- 'serializer: SERIALIZER_CLASS'
+ "\nDefine it like:\n#{option_name} :#{relationship_name}, " \
+ 'serializer: SERIALIZER_CLASS'
end
raise "Serializer class not defined for relationship: #{relationship_name}" unless class_exists? class_name
options[:serializer] = class_name.to_s
options[:always_include] = options[:always_include].nil? ? false : options[:always_include]