Class: Alchemy::Admin::UpdateCheck

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/alchemy/admin/update_check.rb

Instance Method Summary collapse

Instance Method Details

#render?Boolean

Returns:

  • (Boolean)


23
24
25
26
# File 'app/components/alchemy/admin/update_check.rb', line 23

def render?
  !Rails.env.local? && can?(:update_check, :alchemy_admin_dashboard) &&
    Alchemy.config.update_check_service != :none
end