Sha256: 8fdfc084fd32165089953d87a0077813489da1b9f9c6b33a4fe23dbb4692fa58

Contents?: true

Size: 273 Bytes

Versions: 2

Compression:

Stored size: 273 Bytes

Contents

# frozen_string_literal: true

# RocketsHelper
module RocketsHelper
  def rocket_is_built?(rocket)
    File.file?("#{Rails.root}/public/rockets/#{rocket}.rocket")
  end

  def can_uninstall?(rocket_name)
    RocketPolicy.new(current_user, rocket_name).uninstall?
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
keppler-2.1.22 installer/core/app/helpers/rockets_helper.rb
keppler-2.1.21 installer/core/app/helpers/rockets_helper.rb