Skip to content

Commit

Permalink
Add validation aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
antulik committed Sep 26, 2024
1 parent 7aa1bee commit 2042156
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/active_interaction/extras/named_callbacks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ def around_validate(...)
set_callback(:validate, :around, ...)
end

def before_validation(...)
before_validate(...)
end

def after_validation(...)
after_validate(...)
end

def around_validation(...)
around_validate(...)
end

def before_execute(...)
set_callback(:execute, :before, ...)
Expand Down

0 comments on commit 2042156

Please sign in to comment.