Skip to content

Commit

Permalink
dead code
Browse files Browse the repository at this point in the history
originally needed:
3feb47d

and since we require ActiveRecord > 6 it is no longer needed:
rails/rails@9030b7c
  • Loading branch information
pjurewicz committed Jan 30, 2024
1 parent 6be5f60 commit a0143a6
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@ def run(&schedule_proc)
end

def async_record(schedule_proc)
AsyncRecord.new(self, schedule_proc)
AsyncRecord.new(schedule_proc)
end

def verify(subscriber)
@scheduler.verify(subscriber)
end

class AsyncRecord
def initialize(dispatcher, schedule_proc)
@dispatcher = dispatcher
def initialize(schedule_proc)
@schedule_proc = schedule_proc
end

Expand All @@ -42,13 +41,9 @@ def rolledback!(*); end

def before_committed!; end

def add_to_transaction
dispatcher.run(&schedule_proc)
end

def trigger_transactional_callbacks?; end

attr_reader :schedule_proc, :dispatcher
attr_reader :schedule_proc
end
end
end

0 comments on commit a0143a6

Please sign in to comment.