Skip to content

Commit

Permalink
corrected autoformat mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
patvice committed Oct 29, 2024
1 parent 5ea4a9f commit a9e0a3e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/typelizer/serializer_plugins/alba.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ def properties
end

def methods_to_typelize
%i[
association one has_one
many has_many
attributes attribute
nested_attribute nested
meta
[
:association, :one, :has_one,
:many, :has_many,
:attributes, :attribute
:nested_attribute, :nested
:meta
]
end

def typelize_method_transform(method:, name:, binding:, type:, attrs:)
return {name => [type, attrs.merge(multi: true)]} if %i[many has_many].include?(method)
return {name => [type, attrs.merge(multi: true)]} if [:many, :has_many].include?(method)

super
end
Expand Down

0 comments on commit a9e0a3e

Please sign in to comment.