Sha256: 9c000159434373c1d282e9c841c9a9db916f06e65ade4861391a1181eab7f75a

Contents?: true

Size: 424 Bytes

Versions: 5

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

require "decidim/core"

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
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-forms-0.25.0 lib/decidim/forms/engine.rb
decidim-forms-0.25.0.rc4 lib/decidim/forms/engine.rb
decidim-forms-0.25.0.rc3 lib/decidim/forms/engine.rb
decidim-forms-0.25.0.rc2 lib/decidim/forms/engine.rb
decidim-forms-0.25.0.rc1 lib/decidim/forms/engine.rb