Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F886134
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Aug 8, 8:44 PM
Size
2 KB
Mime Type
text/x-diff
Expires
Sun, Aug 10, 8:44 PM (12 h, 19 m)
Engine
blob
Format
Raw Data
Handle
245846
Attached To
rARCHIVING archiving
View Options
diff --git a/config/application.rb b/config/application.rb
index a1b0a9f..0e55f1a 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -1,63 +1,64 @@
require File.expand_path('../boot', __FILE__)
require 'rails/all'
# Production doesn't use bundler
# you've limited to :test, :development, or :production.
if ENV['RAILS_ENV'] != 'production'
Bundler.require(*Rails.groups)
else
# Dependencies to load before starting rails in production
require 'kaminari'
require 'jquery-rails'
require 'state_machine'
require 'beaneater'
require 'oauth2'
require 'warden'
require 'net/scp'
require 'redcarpet'
require 'raven'
+ %w(railties rack rake).each { |ig| Raven.load_integration(ig) }
end
module Archiving
def self.settings opts = nil
@settings ||= {}
return @settings if opts.nil?
@settings.merge! opts
@settings
end
def self.markdown
@markdown ||= Redcarpet::Markdown.new(Redcarpet::Render::HTML)
end
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Store/Read localtime from the database
config.time_zone = 'Athens'
config.active_record.default_timezone = :local
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
config.autoload_paths << Rails.root.join('lib')
# config.x = {}
if sentry_dsn = Rails.application.secrets.sentry_dsn
Raven.configure do |config|
config.dsn = sentry_dsn
end
end
end
end
db_conf = YAML::load(File.open(File.join("#{Rails.root}/config/database.yml")))
bacula_db_conf = YAML::load(File.open(File.join("#{Rails.root}/config/database_bacula.yml")))
ARCHIVING_CONF = db_conf[Rails.env]
BACULA_CONF = bacula_db_conf[Rails.env]
Archiving::Application.config.active_record.table_name_prefix = "#{ARCHIVING_CONF['database']}."
Event Timeline
Log In to Comment