Sha256: 44d99bc977e688966e8112e33d8ce2fd4c29c6217fa559e6fb53f849a75170d1

Contents?: true

Size: 616 Bytes

Versions: 6

Compression:

Stored size: 616 Bytes

Contents

require 'comfy_blog'
require 'rails'

module ComfyBlog
  class Engine < Rails::Engine
    initializer 'comfy_blog.configuration' do |app|
      if defined?(ComfortableMexicanSofa)
        # Applying configuraion
        ComfyBlog.configure do |conf|
          conf.admin_route_prefix = ComfortableMexicanSofa.config.admin_route_prefix
          conf.admin_controller = 'CmsAdmin::BaseController'
          conf.form_builder = 'ComfortableMexicanSofa::FormBuilder'
        end
        # Adding view hooks
        ComfortableMexicanSofa::ViewHooks.add(:navigation, '/admin/blog/navigation')
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
comfy_blog-0.1.8 lib/comfy_blog/engine.rb
comfy_blog-0.1.7 lib/comfy_blog/engine.rb
comfy_blog-0.1.6 lib/comfy_blog/engine.rb
comfy_blog-0.1.5 lib/comfy_blog/engine.rb
comfy_blog-0.1.4 lib/comfy_blog/engine.rb
comfy_blog-0.1.3 lib/comfy_blog/engine.rb