Sha256: e7cc6aa3acc7cfe9fab4333fd889e9b62893d85d16bb8e3c103c234ab1128271

Contents?: true

Size: 589 Bytes

Versions: 5

Compression:

Stored size: 589 Bytes

Contents

# frozen_string_literal: true

module BeyondCanvas
  class Configuration # :nodoc:
    attr_accessor :site_title, :site_logo, :favicon, :skip_webpacker

    include AssetRegistration

    def initialize
      @site_title = ::Rails.application.class.name.split('::').first.humanize
      @site_logo = nil
      @favicon = nil
      @skip_webpacker = false
    end

    def setup!
      register_default_assets
    end

    private

    def register_default_assets
      register_stylesheet 'beyond_canvas.css', media: 'screen'
      register_javascript 'beyond_canvas.js'
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
beyond_canvas-0.15.3.pre lib/beyond_canvas/configuration.rb
beyond_canvas-0.15.2.pre lib/beyond_canvas/configuration.rb
beyond_canvas-0.15.1.pre lib/beyond_canvas/configuration.rb
beyond_canvas-0.15.0.pre lib/beyond_canvas/configuration.rb
beyond_canvas-0.14.0.pre lib/beyond_canvas/configuration.rb