Sha256: a581b8cb0cba584c09b17516a383063c640afc761185ccc6eb10cdf8e3cf8127

Contents?: true

Size: 623 Bytes

Versions: 1

Compression:

Stored size: 623 Bytes

Contents

module Solder
  class Engine < ::Rails::Engine
    isolate_namespace Solder

    initializer "solder.check_caching" do |app|
      unless app.config.action_controller.perform_caching && app.config.cache_store != :null_store
        puts <<~WARN
          🧑‍🏭 Solder uses the Rails cache store to provide UI state persistence. Therefore, please make sure caching is enabled in your environment.

          To enable caching in development, run:
            rails dev:cache
        WARN

        exit false
      end
    end

    config.after_initialize do
      ::ApplicationHelper.include helpers
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solder-0.1.0 lib/solder/engine.rb