mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 23:08:25 +08:00
DEV: Make add_api_parameter_route parameter deprecations errors (#15198)
Since we said we would remove support in 2.7, this is overdue.
This commit is contained in:

committed by
GitHub

parent
10cc082560
commit
3ebce550fe
@ -51,7 +51,7 @@ describe 'api keys' do
|
||||
context "with a plugin registered filter" do
|
||||
before do
|
||||
plugin = Plugin::Instance.new
|
||||
plugin.add_api_parameter_route method: :get, route: "session#current", format: "*"
|
||||
plugin.add_api_parameter_route methods: [:get], actions: ["session#current"]
|
||||
end
|
||||
|
||||
it 'allows parameter access to the registered route' do
|
||||
|
Reference in New Issue
Block a user