app/controllers/concerns/trestle/resource/controller/actions.rb in trestle-0.10.0.pre vs app/controllers/concerns/trestle/resource/controller/actions.rb in trestle-0.10.0.pre2
- old
+ new
@@ -12,11 +12,11 @@
end
def new
respond_to do |format|
format.html
- format.turbo_stream { render turbo_stream: turbo_stream_modal }
+ format.turbo_stream { render turbo_stream: turbo_stream.modal }
format.json { render json: instance }
yield format if block_given?
end
end
@@ -54,11 +54,11 @@
yield format if block_given?
end
else
respond_to do |format|
format.html
- format.turbo_stream { render turbo_stream: turbo_stream_modal } if modal_request?
+ format.turbo_stream { render turbo_stream: turbo_stream.modal } if modal_request?
format.json { render json: instance }
yield format if block_given?
end
end
@@ -73,10 +73,10 @@
yield format if block_given?
end
else
respond_to do |format|
format.html
- format.turbo_stream { render turbo_stream: turbo_stream_modal } if modal_request?
+ format.turbo_stream { render turbo_stream: turbo_stream.modal } if modal_request?
format.json { render json: instance }
yield format if block_given?
end
end