Sha256: 37b73d9dbfe511be55b947cbf7cb6eda424ed06fe30ab253a66e64be2471471f

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 KB

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spud_cms-0.4.8 lib/spud_cms/engine.rb
spud_cms-0.4.7 lib/spud_cms/engine.rb
spud_cms-0.4.6 lib/spud_cms/engine.rb