Skip to content

Commit

Permalink
Rubocop警告を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
hikarook94 committed Nov 11, 2022
1 parent 2a856fc commit 9686ebf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/mailers/notification_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def signed_up
mail to: @user.email, subject: subject
end

def update_regular_event
def update_regular_event
@user = @receiver
@notification = @user.notifications.find_by(link: "/regular_events/#{@regular_event.id}", kind: Notification.kinds[:regular_event])
subject = "[FBC] 定期イベント【#{@regular_event.title}】が更新されました。"
Expand Down
2 changes: 1 addition & 1 deletion app/models/regular_event_update_notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ def call(regular_event)
NotificationFacade.update_regular_event(regular_event, target) if regular_event.user != target
end
end
end
end
3 changes: 1 addition & 2 deletions test/system/notification/regular_events_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ class Notification::ProductsTest < ApplicationSystemTestCase
assert_text "定期イベント【#{regular_event.title}】が更新されました。"
end
end

end
end

0 comments on commit 9686ebf

Please sign in to comment.