Skip to content

Commit adfc22b

Browse files
committed
fix(AssetFieldType): broken host_alias method
1 parent 62ab94a commit adfc22b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/asset_field_type.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def attacher
8888
end
8989

9090
def host_alias
91-
metadata[:storage][:host_alias] unless metadata[:storage][:host_alias].empty?
91+
metadata&.[](:storage)&.[](:host_alias)
9292
end
9393

9494
def versions_data

0 commit comments

Comments
 (0)