Skip to content

Commit

Permalink
get mean and mean business
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth committed Jun 9, 2024
1 parent c3bcefd commit 036a0a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ end
```ruby
# app/controllers/concerns/sudo/examination.rb
module Sudo::Examination
extend ActiveSupport::Concern

class_methods do
def self.included(klass) = klass.singleton_class.class_eval do
def require_sudo_on(*actions, **) = require_sudo(only: *actions, **)
def require_sudo(...) = before_action(:require_sudo, ...)
end
Expand Down

0 comments on commit 036a0a7

Please sign in to comment.