Skip to content

Commit faa8fe6

Browse files
Zinoshishirmk
authored andcommitted
Use string for serializer name
1 parent 5d8e1ce commit faa8fe6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/lib/object_serializer_class_methods_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
attributes :name, :release_year
182182
has_many :actors
183183
belongs_to :owner, record_type: :user
184-
belongs_to :movie_type, serializer: "#{key_transform}_movie_type"
184+
belongs_to :movie_type, serializer: "#{key_transform}_movie_type".to_sym
185185
end
186186
movie_type_serializer_class = Object.const_set(movie_type_serializer_name, Class.new)
187187
movie_type_serializer_class.instance_eval do

0 commit comments

Comments
 (0)