Sha256: 9e6027fab4433094bd8dae94e230e08accb5a712cc72f2c42f6cd7871c078a9e

Contents?: true

Size: 684 Bytes

Versions: 3

Compression:

Stored size: 684 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module FileAuthorizationHandler
    # Census have no public app (see AdminEngine)
    class Engine < ::Rails::Engine
      isolate_namespace Decidim::FileAuthorizationHandler

      initializer "decidim_census.add_irregular_inflection" do |_app|
        ActiveSupport::Inflector.inflections(:en) do |inflect|
          inflect.irregular "census", "census"
        end
      end

      initializer "decidim_census.add_authorization_handlers" do |_app|
        Decidim::Verifications.register_workflow(:file_authorization_handler) do |workflow|
          workflow.form = "FileAuthorizationHandler"
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-file_authorization_handler-0.27.1.7 lib/decidim/file_authorization_handler/engine.rb
decidim-file_authorization_handler-0.27.1.6 lib/decidim/file_authorization_handler/engine.rb
decidim-file_authorization_handler-0.27.1.5 lib/decidim/file_authorization_handler/engine.rb