require 'spud_core' require 'codemirror-rails' module Spud module Cms class Engine < Rails::Engine engine_name :spud_cms # config.autoload_paths << File.expand_path("../app/sweepers", __FILE__) initializer :admin do Spud::Core.configure do |config| config.admin_applications += [{:name => "Pages",:thumbnail => "spud/admin/pages_thumb.png",:url => "/spud/admin/pages",:order => 0}] if Spud::Cms.menus_enabled config.admin_applications += [{:name => "Menus",:thumbnail => "spud/admin/menus_thumb.png",:url => "/spud/admin/menus",:order => 2}] end if Spud::Cms.templates_enabled config.admin_applications += [{:name => "Templates",:thumbnail => "spud/admin/pages_thumb.png",:url => "/spud/admin/templates",:order => 4}] end if Spud::Cms.enable_sitemap == true config.sitemap_urls += [:spud_cms_sitemap_url] end end end initializer :assets do |config| Rails.application.config.assets.precompile += ["spud/admin/cms*"] end end end end