Sha256: 243e986d39098fa894deb939249ece68176991967b7bc2f130ec26a3e95dc054
Contents?: true
Size: 601 Bytes
Versions: 5
Compression:
Stored size: 601 Bytes
Contents
require 'active_support' module NotificationSettings module Target extend ActiveSupport::Concern included do has_one :notification_setting, as: :object, class_name: 'NotificationSettings::Setting', dependent: :destroy before_create :create_notification_setting include NotificationSettings::Target::InstanceMethods end module InstanceMethods private def create_notification_setting self.build_notification_setting end end end end
Version data entries
5 entries across 5 versions & 1 rubygems