Sha256: dacf03db7adaf730b53a224f06411925bb0f526103c1ba7f08248cda27f295d8

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

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 rails_ujs_js
      render file: GoodJob::Engine.root.join("app", "assets", "vendor", "rails_ujs.js")
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
good_job-2.6.0 engine/app/controllers/good_job/assets_controller.rb