Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 21 lines (13 sloc) 0.793 kb
#load everything in /engine_config/initializers
# initializers in your root 'initializers' directory will take precedence if they have the same file name
Dir["#{RAILS_ROOT}/vendor/plugins/community_engine/config/initializers/**/*.rb"].each do |initializer|
load(initializer) unless File.exists?("#{RAILS_ROOT}/config/initializers/#{File.basename(initializer)}")
end
CommunityEngine.check_for_pending_migrations
if AppConfig.theme
theme_view_path = "#{RAILS_ROOT}/themes/#{AppConfig.theme}/views"
ActionController::Base.view_paths = ActionController::Base.view_paths.dup.unshift(theme_view_path)
end
EnginesHelper::Assets.propagate if EnginesHelper.autoload_assets
# # If the app is using Haml/Sass, propagate sass directories too
# EnginesHelper::Assets.update_sass_directories
Jump to Line
Something went wrong with that request. Please try again.