mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
codeclimate fixes
This commit is contained in:
parent
0c2dc9f957
commit
ec1a48743c
11 changed files with 14 additions and 17 deletions
|
@ -17,5 +17,9 @@ module Admin
|
|||
def user_for_paper_trail
|
||||
current_admin_user ? current_admin_user.id_role_username : 'anonymous'
|
||||
end
|
||||
|
||||
def paginate?
|
||||
params[:results_per_page].to_i.positive?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue