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.7.2 engine/app/controllers/good_job/assets_controller.rb
good_job-2.7.1 engine/app/controllers/good_job/assets_controller.rb
good_job-2.7.0 engine/app/controllers/good_job/assets_controller.rb
good_job-2.6.2 engine/app/controllers/good_job/assets_controller.rb
good_job-2.6.1 engine/app/controllers/good_job/assets_controller.rb