Sha256: f34d88bf482d66a48df1798f299e123bd615be42b04c0f24476959253407ca2f

Contents?: true

Size: 1.56 KB

Versions: 18

Compression:

Stored size: 1.56 KB

Contents

require 'spud_core'
require 'spud_permalinks'
require 'codemirror-rails'
module Spud
  module Cms
    class Engine < Rails::Engine
     engine_name :spud_cms
     # config.autoload_paths << File.expand_path("../app/sweepers", __FILE__)
    config.generators do |g|
      g.test_framework :rspec, :view_specs => false
    end
     
     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 :spud_cms_routes do |config|
      config.routes_reloader.paths << File.expand_path('../page_route.rb', __FILE__)
     end
     initializer :load_priority, :after => :load_environment_config do |config|
      puts "Loading Railties Order"
      # Rails.application.config.railties_order = [:main_app, :all,Spud::Core::Engine,Spud::Cms::Engine]
     end
     initializer :assets do |config| 
    	Rails.application.config.assets.precompile += ["spud/admin/cms*"]
  	 end

  end 
 end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
spud_cms-0.8.17 lib/spud_cms/engine.rb
spud_cms-0.8.15 lib/spud_cms/engine.rb
spud_cms-0.8.14 lib/spud_cms/engine.rb
spud_cms-0.8.13 lib/spud_cms/engine.rb
spud_cms-0.8.12 lib/spud_cms/engine.rb
spud_cms-0.8.11 lib/spud_cms/engine.rb
spud_cms-0.8.10 lib/spud_cms/engine.rb
spud_cms-0.8.9 lib/spud_cms/engine.rb
spud_cms-0.8.7 lib/spud_cms/engine.rb
spud_cms-0.8.6 lib/spud_cms/engine.rb
spud_cms-0.8.5 lib/spud_cms/engine.rb
spud_cms-0.8.4 lib/spud_cms/engine.rb
spud_cms-0.8.2 lib/spud_cms/engine.rb
spud_cms-0.8.1 lib/spud_cms/engine.rb
spud_cms-0.8.0 lib/spud_cms/engine.rb
spud_cms-0.7.2 lib/spud_cms/engine.rb
spud_cms-0.7.1 lib/spud_cms/engine.rb
spud_cms-0.7.0 lib/spud_cms/engine.rb