Sha256: 0646664d68adc960a039b866f90d52f74ae896434361b58d2069c422132aa3ac

Contents?: true

Size: 922 Bytes

Versions: 24

Compression:

Stored size: 922 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 chartist_css
      render file: GoodJob::Engine.root.join("app", "assets", "vendor", "chartist", "chartist.css")
    end

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

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
good_job-1.12.2 engine/app/controllers/good_job/assets_controller.rb
good_job-1.12.1 engine/app/controllers/good_job/assets_controller.rb
good_job-1.12.0 engine/app/controllers/good_job/assets_controller.rb
good_job-1.11.3 engine/app/controllers/good_job/assets_controller.rb