diff options
author | luca-marie <ml.kochsiek@fu-berlin.de> | 2016-09-22 15:31:52 +0200 |
---|---|---|
committer | luca-marie <ml.kochsiek@fu-berlin.de> | 2016-09-22 15:31:52 +0200 |
commit | 6f9c4fdab2caef90e49ca965617e767b50bcbbb2 (patch) | |
tree | 327c1383a694d3fca985813ec54e218240e85637 /config/initializers | |
parent | 306b36c045cd62638db179115ed002c6ab7c5cd8 (diff) |
initializer/twitter.rb file unnecessary; added change in main view only if twitter feature is set enabled == true
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/twitter.rb | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/config/initializers/twitter.rb b/config/initializers/twitter.rb deleted file mode 100644 index 9f537e9..0000000 --- a/config/initializers/twitter.rb +++ /dev/null @@ -1,37 +0,0 @@ -# -# When deploying, common customizations can be dropped in config/customizations. This initializer makes this work. -# -APP_CONFIG["customization_directory"] ||= "#{Rails.root}/config/customization" -customization_directory = APP_CONFIG["customization_directory"] - -# -# Set customization views as the first view path -# -# Rails.application.config.paths['app/views'].unshift "config/customization/views" -# (For some reason, this does not work here. See application.rb for where this is actually called.) - -# -# Set customization stylesheets as the first asset path -# -# Some notes: -# -# * This cannot go in application.rb, as far as I can tell. In application.rb, the default paths -# haven't been loaded yet, so the path we add will always end up at the end unless we add it here. -# -# * For this to work, config.assets.initialize_on_precompile MUST be set to true, otherwise -# this initializer will never get called in production mode when the assets are precompiled. -# -Rails.application.config.assets.paths.unshift "#{customization_directory}/stylesheets" - -# -# Copy files to public -# -if !defined?(RAKE) && Dir.exist?("#{customization_directory}/public") - require 'fileutils' - FileUtils.cp_r("#{customization_directory}/public/.", "#{Rails.root}/public", :preserve => true) -end - -# -# Add I18n path -# -Rails.application.config.i18n.load_path += Dir["#{customization_directory}/locales/*.{rb,yml,yaml}"] |