Sha256: 1c20337042d9a4a2538019cb893c20aa25ef6fbf3931d6c774743798ecee24c7

Contents?: true

Size: 834 Bytes

Versions: 41

Compression:

Stored size: 834 Bytes

Contents

# frozen_string_literal: true

require "rails"
require "active_support/all"
require "kaminari"
require "jquery-tmpl-rails"

require "decidim/core"

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

      routes do
        resources :posts, only: [:index, :show]
        root to: "posts#index"
      end

      initializer "decidim_blogs.add_cells_view_paths" do
        Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Blogs::Engine.root}/app/cells")
        Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Blogs::Engine.root}/app/views") # for partials
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
decidim-blogs-0.24.3 lib/decidim/blogs/engine.rb
decidim-blogs-0.23.6 lib/decidim/blogs/engine.rb
decidim-blogs-0.24.2 lib/decidim/blogs/engine.rb
decidim-blogs-0.23.5 lib/decidim/blogs/engine.rb
decidim-blogs-0.24.1 lib/decidim/blogs/engine.rb
decidim-blogs-0.24.0 lib/decidim/blogs/engine.rb
decidim-blogs-0.24.0.rc2 lib/decidim/blogs/engine.rb
decidim-blogs-0.23.4 lib/decidim/blogs/engine.rb
decidim-blogs-0.24.0.rc1 lib/decidim/blogs/engine.rb
decidim-blogs-0.23.3 lib/decidim/blogs/engine.rb
decidim-blogs-0.23.2 lib/decidim/blogs/engine.rb
decidim-blogs-0.23.1 lib/decidim/blogs/engine.rb
decidim-blogs-0.23.1.rc1 lib/decidim/blogs/engine.rb
decidim-blogs-0.23.0 lib/decidim/blogs/engine.rb
decidim-blogs-0.22.0 lib/decidim/blogs/engine.rb
decidim-blogs-0.21.0 lib/decidim/blogs/engine.rb
decidim-blogs-0.20.1 lib/decidim/blogs/engine.rb
decidim-blogs-0.20.0 lib/decidim/blogs/engine.rb
decidim-blogs-0.19.1 lib/decidim/blogs/engine.rb
decidim-blogs-0.18.1 lib/decidim/blogs/engine.rb