Skip to content

Commit

Permalink
Enable truffle-ruby for rails main for CI (#42)
Browse files Browse the repository at this point in the history
* Enable truffle-ruby for rails main for CI

* Resolve Style/ArgumentsForwarding rubocop issue
  • Loading branch information
uxxman authored Sep 4, 2023
1 parent 3f1b45e commit 826d48a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
- 'activemodel_6.1'
- 'activemodel_7.0'
- 'activemodel_main'
exclude:
- ruby: 'truffleruby'
gemfile: 'activemodel_main'

env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
Expand Down
12 changes: 6 additions & 6 deletions lib/service_record/callbacks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ module Callbacks
end

class_methods do
def before_perform(*filters, &blk)
set_callback(:perform, :before, *filters, &blk)
def before_perform(...)
set_callback(:perform, :before, ...)
end

def after_perform(*filters, &blk)
set_callback(:perform, :after, *filters, &blk)
def after_perform(...)
set_callback(:perform, :after, ...)
end

def around_perform(*filters, &blk)
set_callback(:perform, :around, *filters, &blk)
def around_perform(...)
set_callback(:perform, :around, ...)
end
end
end
Expand Down

0 comments on commit 826d48a

Please sign in to comment.