Sha256: 8f68984c61b266074eb00416b1bad8e5c95fc5b7a51a1e1ead15af08045be476

Contents?: true

Size: 630 Bytes

Versions: 11

Compression:

Stored size: 630 Bytes

Contents

# frozen_string_literal: true

require "rubygems"
require "rails"
require "comfortable_mexican_sofa"
require "comfy_blog"

module ComfyBlog

  module CmsSiteExtensions

    extend ActiveSupport::Concern
    included do
      has_many :blog_posts,
        class_name: "Blog::Post",
        dependent:  :destroy
    end

  end

  class Engine < ::Rails::Engine

    initializer "comfy_blog.configuration" do
      ComfortableMexicanSofa::ViewHooks.add(:navigation, "/comfy/admin/blog/partials/navigation")
      config.to_prepare do
        Comfy::Cms::Site.send :include, ComfyBlog::CmsSiteExtensions
      end
    end

  end

end

Version data entries

11 entries across 11 versions & 6 rubygems

Version Path
PixelForce_FyBlog-0.0.2 lib/comfy_blog/engine.rb
PixelForce_FyBlog-0.0.1 lib/comfy_blog/engine.rb
PixelForce_ComfyBlog-0.0.1 lib/comfy_blog/engine.rb
EtsComfyBlog-0.0.4 lib/comfy_blog/engine.rb
EtsComfyBlog-0.0.3 lib/comfy_blog/engine.rb
EtsComfyBlog-0.0.2 lib/comfy_blog/engine.rb
EtsComfyBlog-0.0.1 lib/comfy_blog/engine.rb
ets_comfy_blog-0.0.1 lib/comfy_blog/engine.rb
kcy_comfy_blog-2.0.7 lib/comfy_blog/engine.rb
comfy_blog-2.0.7 lib/comfy_blog/engine.rb
comfy_blog-2.0.6 lib/comfy_blog/engine.rb