Skip to content

Commit

Permalink
Deprecate frontend elements controller
Browse files Browse the repository at this point in the history
This is a very old feature that very likely nobody uses.
Will be removed in Alchemy 8.0
  • Loading branch information
tvdeyen committed Jan 5, 2025
1 parent ce12a5d commit 14955e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 45 deletions.
3 changes: 3 additions & 0 deletions app/controllers/alchemy/elements_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ class ElementsController < Alchemy::BaseController
# * html
# * js (Tries to replace a given +container_id+ with the elements view partial content via jQuery.)
#
# @deprecated This controller action will be removed in Alchemy 8.0.
def show
Alchemy::Deprecation.warn "The elements#show controller action is deprecated and will be removed in Alchemy 8.0."

Check warning on line 21 in app/controllers/alchemy/elements_controller.rb

View check run for this annotation

Codecov / codecov/patch

app/controllers/alchemy/elements_controller.rb#L21

Added line #L21 was not covered by tests

@page = @element.page
@options = params[:options]

Expand Down
45 changes: 0 additions & 45 deletions spec/controllers/alchemy/elements_controller_spec.rb

This file was deleted.

0 comments on commit 14955e0

Please sign in to comment.