Sha256: 686431f8f604b1b3228c3b0159527b429c76235e9703eaf4ab6a333cfe169d6a

Contents?: true

Size: 800 Bytes

Versions: 1

Compression:

Stored size: 800 Bytes

Contents

module Refinery
  module Blog
    class Engine < Rails::Engine
      include Refinery::Engine

      isolate_namespace Refinery::Blog

      before_inclusion do
        Refinery::Plugin.register do |plugin|
          plugin.pathname = root
          plugin.name = "refinerycms_blog"
          plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.blog_admin_posts_path }
          plugin.menu_match = %r{refinery/blog/?(posts|comments|categories)?}
        end

        Rails.application.config.assets.precompile += %w(
          refinery/blog/backend.js
          refinery/blog/backend.css
          refinery/blog/frontend.css
          refinery/blog/**/*.css
        )
      end

      config.after_initialize do
        Refinery.register_engine(Refinery::Blog)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-blog-4.0.0 lib/refinery/blog/engine.rb