Sha256: 36c892cecc2d7f15b73ded66f7b2cdcfcb1725463f4613aa68a8c4ae1ec71bbe

Contents?: true

Size: 558 Bytes

Versions: 25

Compression:

Stored size: 558 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Forms
    # This is the engine that runs on the public interface of `decidim-forms`.
    class Engine < ::Rails::Engine
      isolate_namespace Decidim::Forms

      initializer "decidim_forms.add_cells_view_paths" do
        Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Forms::Engine.root}/app/cells")
      end

      initializer "decidim_forms.assets" do |app|
        app.config.assets.precompile += %w(decidim_forms_manifest.js decidim_forms_manifest.css)
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
decidim-forms-0.24.3 lib/decidim/forms/engine.rb
decidim-forms-0.23.6 lib/decidim/forms/engine.rb
decidim-forms-0.24.2 lib/decidim/forms/engine.rb
decidim-forms-0.23.5 lib/decidim/forms/engine.rb
decidim-forms-0.24.1 lib/decidim/forms/engine.rb
decidim-forms-0.24.0 lib/decidim/forms/engine.rb
decidim-forms-0.24.0.rc2 lib/decidim/forms/engine.rb
decidim-forms-0.23.4 lib/decidim/forms/engine.rb
decidim-forms-0.24.0.rc1 lib/decidim/forms/engine.rb
decidim-forms-0.23.3 lib/decidim/forms/engine.rb
decidim-forms-0.23.2 lib/decidim/forms/engine.rb
decidim-forms-0.23.1 lib/decidim/forms/engine.rb
decidim-forms-0.23.1.rc1 lib/decidim/forms/engine.rb
decidim-forms-0.23.0 lib/decidim/forms/engine.rb
decidim-forms-0.22.0 lib/decidim/forms/engine.rb
decidim-forms-0.21.0 lib/decidim/forms/engine.rb
decidim-forms-0.20.1 lib/decidim/forms/engine.rb
decidim-forms-0.20.0 lib/decidim/forms/engine.rb
decidim-forms-0.19.1 lib/decidim/forms/engine.rb
decidim-forms-0.18.1 lib/decidim/forms/engine.rb