Sha256: 6f9f61a8f2bb6d2efb94f3e958c5d76802a8031b62e6f4039a74c8476c3a07db

Contents?: true

Size: 592 Bytes

Versions: 3

Compression:

Stored size: 592 Bytes

Contents

require 'rubygems'
require 'rails'
require 'comfortable_mexican_sofa'
require 'comfy_blog'

module ComfyBlog
  
  module CmsSiteExtensions
    extend ActiveSupport::Concern
    included do 
      has_many :blogs,
        :class_name => 'Blog::Blog',
        :dependent  => :destroy
    end
  end
  
  class Engine < ::Rails::Engine
    initializer 'comfy_blog.configuration' do |app|
      ComfortableMexicanSofa::ViewHooks.add(:navigation, '/admin/blog/partials/navigation')
      config.to_prepare do
        Cms::Site.send :include, ComfyBlog::CmsSiteExtensions
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comfy_blog-1.1.1 lib/comfy_blog/engine.rb
comfy_blog-1.1.0 lib/comfy_blog/engine.rb
comfy_blog-1.0.0 lib/comfy_blog/engine.rb