Sha256: e23ee0411f8f8d68c1d5f02e82268bf70aa7f20972658f9ba50570daecae3bcd

Contents?: true

Size: 607 Bytes

Versions: 7

Compression:

Stored size: 607 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Surveys
    # This is the engine that runs on the public interface of `Surveys`.
    class AdminEngine < ::Rails::Engine
      isolate_namespace Decidim::Surveys::Admin

      paths["db/migrate"] = nil
      paths["lib/tasks"] = nil

      routes do
        post "/", to: "surveys#update", as: :survey
        root to: "surveys#edit"
      end

      initializer "decidim_surveys.admin_assets" do |app|
        app.config.assets.precompile += %w(admin/decidim_surveys_manifest.js)
      end

      def load_seed
        nil
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-surveys-0.15.2 lib/decidim/surveys/admin_engine.rb
decidim-surveys-0.15.1 lib/decidim/surveys/admin_engine.rb
decidim-surveys-0.15.0 lib/decidim/surveys/admin_engine.rb
decidim-surveys-0.14.4 lib/decidim/surveys/admin_engine.rb
decidim-surveys-0.14.3 lib/decidim/surveys/admin_engine.rb
decidim-surveys-0.14.2 lib/decidim/surveys/admin_engine.rb
decidim-surveys-0.14.1 lib/decidim/surveys/admin_engine.rb