Skip to content

Commit

Permalink
Appeasing rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyf committed Nov 20, 2023
1 parent 91652ba commit e646651
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ def to_s
email
end

def is_admin
has_role?(:admin) || has_role?(:admin, Site.instance)
end

def is_superadmin
has_role? :superadmin
end
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/set_parent_thumbnail.rake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require 'ruby-progressbar'
namespace :hyku do
namespace :update do
desc 'Make sure all works have a thumbnail'
task :set_parent_thumbnail, [:accounts] => [:environment] do |t, args|
task :set_parent_thumbnail, [:accounts] => [:environment] do |_t, args|
accounts = if args[:accounts].present?
args[:accounts].split(',').map { |a| Account.find_by(name: a.strip) }.compact
else
Expand Down

0 comments on commit e646651

Please sign in to comment.