Sha256: b00b4f87ea7083e2163b6a7d1bd16a0b9b95e4515cce420f958c9bb13d40cabc
Contents?: true
Size: 841 Bytes
Versions: 13
Compression:
Stored size: 841 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 initializer "decidim_forms.webpacker.assets_path" do Decidim.register_assets_path File.expand_path("app/packs", root) end initializer "decidim_forms.authorization_transfer" do config.to_prepare do Decidim::AuthorizationTransfer.register(:forms) do |transfer| transfer.move_records(Decidim::Forms::Answer, :decidim_user_id) end end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems