Adjust code for rails internal changes
This commit is contained in:
parent
46cd08b1c8
commit
a6b5f2f56d
3 changed files with 3 additions and 3 deletions
|
@ -73,7 +73,7 @@ module UserHelper
|
|||
if user.avatar.variable?
|
||||
variant = user.avatar.variant(variant_options)
|
||||
# https://stackoverflow.com/questions/61893089/get-metadata-of-active-storage-variant/67228171
|
||||
if variant.processed?
|
||||
if variant.send(:processed?)
|
||||
metadata = variant.processed.send(:record).image.blob.metadata
|
||||
if metadata["width"]
|
||||
options[:width] = metadata["width"]
|
||||
|
|
|
@ -9,7 +9,7 @@ module GeoRecord
|
|||
format("%<coord>.7f", :coord => self)
|
||||
end
|
||||
|
||||
def as_json(_)
|
||||
def as_json(*)
|
||||
format("%<coord>.7f", :coord => self).to_f
|
||||
end
|
||||
end
|
||||
|
|
|
@ -15,7 +15,7 @@ module RichText
|
|||
include ActionView::Helpers::TextHelper
|
||||
include ActionView::Helpers::OutputSafetyHelper
|
||||
|
||||
def sanitize(text)
|
||||
def sanitize(text, _options = {})
|
||||
Sanitize.clean(text, Sanitize::Config::OSM).html_safe
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue