Skip to content

Restrict NotificationSetting#event_enabled? method to only attributes

Thong Kuah requested to merge restrict_to_attributes_notificiation_setting into master

What does this MR do?

Restrict method to only attributes

Rather than having the ability to call any method on this class

Availability and Testing

All events should be DB columns, including the new_epic attribute (EE only). ee/spec/models/ee/notification_setting_spec.rb and spec/models/notification_setting_spec.rb have enough coverage here.

Edited by Thong Kuah

Merge request reports