Sha256: 14302d8f8cd390c3dbc89b6b900917db6bc75c7dd39d0b627dc20af850e0b9a9
Contents?: true
Size: 699 Bytes
Versions: 3
Compression:
Stored size: 699 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') ComfortableMexicanSofa::ViewHooks.add(:html_head, '/admin/blog/html_head') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
comfy_blog-0.1.2 | lib/comfy_blog/engine.rb |
comfy_blog-0.1.1 | lib/comfy_blog/engine.rb |
comfy_blog-0.1.0 | lib/comfy_blog/engine.rb |