Sha256: acd9d3ea7bdca58209cd56f3923a794d3a7160b6b007e9faeae09d8615a6a379
Contents?: true
Size: 697 Bytes
Versions: 3
Compression:
Stored size: 697 Bytes
Contents
class Verdict::Railtie < Rails::Railtie initializer "experiments.configure_rails_initialization" do |app| Verdict.default_logger = Rails.logger Verdict.directory ||= Rails.root.join('app', 'experiments') app.config.eager_load_paths -= Dir[Verdict.directory.to_s] # Re-freeze eager load paths to ensure they blow up if modified at runtime, as Rails does app.config.eager_load_paths.freeze end config.to_prepare do # Clear Verdict's cache in order to avoid "A copy of ... has been removed from the module tree but is still active!" Verdict.clear_repository_cache end rake_tasks do load File.expand_path("./tasks.rake", File.dirname(__FILE__)) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
verdict-0.8.0 | lib/verdict/railtie.rb |
verdict-0.7.0 | lib/verdict/railtie.rb |
verdict-0.6.3 | lib/verdict/railtie.rb |