Merge pull request #1149 from Ducz0r/lm-remove-unnecessary-save-on-notifications

Remove unnecessary save on notifications
This commit is contained in:
Luka Murn 2018-05-21 13:53:23 +02:00 committed by GitHub
commit 91673afbf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -431,7 +431,6 @@ class User < ApplicationRecord
define_method("#{name}=") do |value|
attr_name = name.gsub('_notification', '').to_sym
notifications_settings[attr_name] = value
save
end
end