Sha256: d37ecf547e9cb34abbd34bd2e8904f5a329469a1fcc8e9388bfa02dcabf8affe

Contents?: true

Size: 739 Bytes

Versions: 19

Compression:

Stored size: 739 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Budgets
    # This is the engine that runs on the public interface of `decidim-budgets`.
    # It mostly handles rendering the created projects associated to a participatory
    # process.
    class AdminEngine < ::Rails::Engine
      isolate_namespace Decidim::Budgets::Admin

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

      routes do
        resources :projects do
          resources :attachment_collections
          resources :attachments
          collection do
            resource :proposals_import, only: [:new, :create]
          end
        end

        root to: "projects#index"
      end

      def load_seed
        nil
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-budgets-0.21.0 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.20.1 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.20.0 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.19.1 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.18.1 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.19.0 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.17.2 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.18.0 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.17.1 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.16.1 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.17.0 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.16.0 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.15.2 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.15.1 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.15.0 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.14.4 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.14.3 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.14.2 lib/decidim/budgets/admin_engine.rb
decidim-budgets-0.14.1 lib/decidim/budgets/admin_engine.rb