Sha256: 2a8ca0dc9027a3f8dcbdfc8c6e940182ba99b8d0c69f5c39264c640d8cd404ef

Contents?: true

Size: 1013 Bytes

Versions: 25

Compression:

Stored size: 1013 Bytes

Contents

# frozen_string_literal: true
module GoodJob
  class AssetsController < ActionController::Base # rubocop:disable Rails/ApplicationController
    skip_before_action :verify_authenticity_token, raise: false

    before_action do
      expires_in 1.year, public: true
    end

    def bootstrap_css
      render file: GoodJob::Engine.root.join("app", "assets", "vendor", "bootstrap", "bootstrap.min.css")
    end

    def bootstrap_js
      render file: GoodJob::Engine.root.join("app", "assets", "vendor", "bootstrap", "bootstrap.bundle.min.js")
    end

    def chartjs_js
      render file: GoodJob::Engine.root.join("app", "assets", "vendor", "chartjs", "chart.min.js")
    end

    def rails_ujs_js
      render file: GoodJob::Engine.root.join("app", "assets", "vendor", "rails_ujs.js")
    end

    def scripts_js
      render file: GoodJob::Engine.root.join("app", "assets", "scripts.js")
    end

    def style_css
      render file: GoodJob::Engine.root.join("app", "assets", "style.css")
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
good_job-2.13.0 engine/app/controllers/good_job/assets_controller.rb
good_job-2.12.2 engine/app/controllers/good_job/assets_controller.rb
good_job-2.12.1 engine/app/controllers/good_job/assets_controller.rb
good_job-2.12.0 engine/app/controllers/good_job/assets_controller.rb
good_job-2.11.3 engine/app/controllers/good_job/assets_controller.rb
good_job-2.11.2 engine/app/controllers/good_job/assets_controller.rb
good_job-2.11.1 engine/app/controllers/good_job/assets_controller.rb
good_job-2.11.0 engine/app/controllers/good_job/assets_controller.rb
good_job-2.10.0 engine/app/controllers/good_job/assets_controller.rb
good_job-2.9.6 engine/app/controllers/good_job/assets_controller.rb
good_job-2.9.5 engine/app/controllers/good_job/assets_controller.rb
good_job-2.9.4 engine/app/controllers/good_job/assets_controller.rb
good_job-2.9.3 engine/app/controllers/good_job/assets_controller.rb
good_job-2.9.2 engine/app/controllers/good_job/assets_controller.rb
good_job-2.9.1 engine/app/controllers/good_job/assets_controller.rb
good_job-2.9.0 engine/app/controllers/good_job/assets_controller.rb
good_job-2.8.1 engine/app/controllers/good_job/assets_controller.rb
good_job-2.8.0 engine/app/controllers/good_job/assets_controller.rb
good_job-2.7.4 engine/app/controllers/good_job/assets_controller.rb
good_job-2.7.3 engine/app/controllers/good_job/assets_controller.rb