Skip to content

Commit

Permalink
More apt concern syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ceithir committed Sep 29, 2023
1 parent 0d56025 commit af6c91a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/user_loggable.rb → app/models/concerns/user_loggable.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module UserLoggable
def self.included(user)
user.class_eval do
before_destroy :log_removal_of_self_from_fnok_relationships
end
extend ActiveSupport::Concern

included do
before_destroy :log_removal_of_self_from_fnok_relationships
end

def log_removal_of_self_from_fnok_relationships
Expand Down

0 comments on commit af6c91a

Please sign in to comment.