1
0
Fork 0
forked from gitea/nas

Fix passing rspec at least controllers/models

This commit is contained in:
KMY 2023-08-07 22:46:23 +09:00
parent 54ba842786
commit e2923bff51
3 changed files with 2 additions and 3 deletions

View file

@ -40,7 +40,7 @@ class CustomEmoji < ApplicationRecord
belongs_to :category, class_name: 'CustomEmojiCategory', optional: true
has_one :local_counterpart, -> { where(domain: nil) }, class_name: 'CustomEmoji', primary_key: :shortcode, foreign_key: :shortcode, inverse_of: false
has_many :emoji_reactions, inverse_of: :custom_emoji
has_many :emoji_reactions, inverse_of: :custom_emoji, dependent: :destroy
has_attached_file :image, styles: { static: { format: 'png', convert_options: '-coalesce +profile "!icc,*" +set modify-date +set create-date' } }, validate_media_type: false

View file

@ -43,7 +43,6 @@ class UpdateStatusService < BaseService
update_metadata!
broadcast_updates!
@status.reload
@status
rescue NoChangesSubmittedError
# For calls that result in no changes, swallow the error

View file

@ -38,7 +38,7 @@
= yield :header_tags
%script{ src="https://www.googletagmanager.com/gtag/js?id=AW-11130587137" async }
%script{ 'src' => "https://www.googletagmanager.com/gtag/js?id=AW-11130587137", 'async' => true }
:javascript
window.dataLayer = window.dataLayer || [];