Sha256: 6f56fa91ec4ca7c9ee5272b84cd812c85805fe6f0efd9c88548304d0aad97220
Contents?: true
Size: 954 Bytes
Versions: 9
Compression:
Stored size: 954 Bytes
Contents
# frozen_string_literal: true module Wallaby # UI engine class UiEngine < ::Rails::Engine initializer 'wallaby.autoload_paths', before: :set_load_path do |_| # NOTE: this needs to be run before `set_load_path` # so that files under `app/views` can be eager loaded # and therefore, Wallaby's renderer can function properly [config].each do |conf| next if conf.paths['app/views'].eager_load? conf.paths.add 'app/views', eager_load: true end end initializer 'wallaby.assets.precompile' do |_| config.assets.precompile += %w( wallaby/application.js wallaby/application.css wallaby/bad_request.png wallaby/forbidden.png wallaby/internal_server_error.png wallaby/not_found.png wallaby/not_implemented.png wallaby/unauthorized.png wallaby/unprocessable_entity.png ) end end end
Version data entries
9 entries across 9 versions & 1 rubygems