forked from fixin.me/fixin.me
9
config/initializers/turbo_stream_actions.rb
Normal file
9
config/initializers/turbo_stream_actions.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
ActiveSupport.on_load :turbo_streams_tag_builder do
|
||||
def disable(target)
|
||||
action :disable, target
|
||||
end
|
||||
|
||||
def disable_all(targets)
|
||||
action_all :disable, targets
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user