Skip to content

Commit

Permalink
invalid around callback error file is linter-approved
Browse files Browse the repository at this point in the history
  • Loading branch information
adviti-mishra committed Jul 17, 2024
1 parent 005c5b4 commit 877f41c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/mongoid/errors/invalid_around_callback.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
# frozen_string_literal: true
# rubocop:todo all

module Mongoid
module Errors

# This error is raised when an around callback is
# defined by the user without a yield
class InvalidAroundCallback < MongoidError

# Create the new error.
#
# @api private
def initialize
super(compose_message("invalid_around_callback"))
super(compose_message('invalid_around_callback'))
end
end
end
Expand Down

0 comments on commit 877f41c

Please sign in to comment.