Method: ActivityNotification::ORM::ActiveRecord::Notification.raise_delete_restriction_error

Defined in:
lib/activity_notification/orm/active_record/notification.rb

.raise_delete_restriction_error(error_text) ⇒ void

This method returns an undefined value.

Raise DeleteRestrictionError for notifications.

Parameters:

  • error_text (String)

    Error text for raised exception

Raises:

  • (ActiveRecord::DeleteRestrictionError)

    DeleteRestrictionError from used ORM



179
180
181
# File 'lib/activity_notification/orm/active_record/notification.rb', line 179

def self.raise_delete_restriction_error(error_text)
  raise ::ActiveRecord::DeleteRestrictionError.new(error_text)
end