Sha256: 39cf99fb98180f113f3c4c47f240c96d16e495cf80800f3d1092f0d093a0fa09
Contents?: true
Size: 849 Bytes
Versions: 5
Compression:
Stored size: 849 Bytes
Contents
# frozen_string_literal: true module BeyondCanvas class Engine < ::Rails::Engine # :nodoc: isolate_namespace BeyondCanvas initializer 'beyond_canvas.assets.precompile' do |app| BeyondCanvas.configuration.stylesheets.each do |path, _| app.config.assets.precompile << path end BeyondCanvas.configuration.javascripts.each do |path| app.config.assets.precompile << path end end config.before_initialize do ActiveSupport.on_load :action_controller do include ::BeyondCanvas::LocaleManagement include ::BeyondCanvas::RequestValidation include ::BeyondCanvas::StatusCodes ::ActionController::Base.helper BeyondCanvas::Engine.helpers end ActiveSupport.on_load :action_mailer do layout 'beyond_canvas/mailer' end end end end
Version data entries
5 entries across 5 versions & 1 rubygems