mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 21:46:24 +02:00
Fixed codeclimate issues
This commit is contained in:
parent
0f16ec77f5
commit
dc41cfb103
3 changed files with 11 additions and 10 deletions
|
@ -40,8 +40,9 @@ module Admin
|
|||
def edit; end
|
||||
|
||||
def show
|
||||
@result = @registrar.send(params[:records]) unless params[:records].blank?
|
||||
render_by_format('admin/registrars/show', "#{@registrar.name.parameterize}_#{params[:records]}")
|
||||
method = params[:records].present? ? params[:records] : 'api_users'
|
||||
@result = @registrar.send(method)
|
||||
render_by_format('admin/registrars/show', "#{@registrar.name.parameterize}_#{method}")
|
||||
end
|
||||
|
||||
def update
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue