Use a plain tab param
Instead of using a setting nested param `setting[:tab]`. We only need the tab param when rendering settings in the administration section. This change will make it easier rendering the correct tab after updating settings.
This commit is contained in:
committed by
Javi Martín
parent
6a64f38d17
commit
1fb351425f
@@ -55,8 +55,6 @@ class Admin::SettingsController < Admin::BaseController
|
||||
end
|
||||
|
||||
def request_referer
|
||||
return request.referer + params[:setting][:tab] if params[:setting][:tab]
|
||||
|
||||
request.referer
|
||||
request.referer + params[:tab].to_s
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user