0
0
Fork 0

Revert "Rails 7 update" (#25667)

This commit is contained in:
Eugen Rochko 2023-07-02 11:14:22 +02:00 committed by GitHub
parent 5b46345459
commit ba06a2f104
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 144 additions and 242 deletions

View file

@ -37,7 +37,7 @@ class InlineRenderer
private
def preload_associations_for_status
ActiveRecord::Associations::Preloader.new(records: @object, associations: {
ActiveRecord::Associations::Preloader.new.preload(@object, {
active_mentions: :account,
reblog: {

View file

@ -16,7 +16,7 @@ class RSS::Channel < RSS::Element
end
def last_build_date(date)
append_element('lastBuildDate', date.to_fs(:rfc822))
append_element('lastBuildDate', date.to_formatted_s(:rfc822))
end
def image(url, title, link)

View file

@ -20,7 +20,7 @@ class RSS::Item < RSS::Element
end
def pub_date(date)
append_element('pubDate', date.to_fs(:rfc822))
append_element('pubDate', date.to_formatted_s(:rfc822))
end
def description(str)