Sha256: 88b38063f9becfadda11ec42f09e328b4389cd893b087a9b34d5f597635b83bb

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

# require "adva_cms/version"
require "rails"
require "will_paginate"
require "awesome_nested_set"
require "actionpack/page_caching"

require 'extensible_forms'
require 'time_hacks'
require 'core_ext'
require 'rails_ext'

# require 'menu'
# require 'event'    # need to force these to be loaded now, so Rails won't
# require 'registry' # reload them between requests (FIXME ... this doesn't seem to happen?)

# config.to_prepare do
#   Registry.set :redirect, {
#     :login        => lambda { |c| c.send(:admin_sites_url) },
#     :verify       => '/',
#     :site_deleted => lambda { |c| c.send(:admin_sites_url) }
#   }
# end

# load vendored gems
Dir["#{File.expand_path("#{File.dirname(__FILE__)}/../vendor/gems")}/**/lib"].each do |vendored_gem_path|
  $: << vendored_gem_path
end

require "has_counter"
require "belongs_to_cacheable"
require "filtered_column"
require "has_filter"
require "simple_taggable"
require "tags"
require "table_builder"
require "xss_terminate"

module AdvaCms
  class Engine < Rails::Engine
    initializer "add assets to precompilation list" do |app|
      app.config.assets.precompile += %w(adva_cms/application.js)
      app.config.assets.precompile += %w(adva_cms/admin.css)
      app.config.assets.precompile += %w(admin.css admin.js)
    end

    initializer "setup xss_terminate" do
      XssTerminate.untaint_after_find = true
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
adva_cms-0.0.1 lib/adva_cms.rb
adva-0.0.1 adva_cms/lib/adva_cms.rb