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