Sha256: 232eaef1cb9453f819f1e90b1737455b7fcae215ed1b683027a1d474d89d5fc3

Contents?: true

Size: 559 Bytes

Versions: 16

Compression:

Stored size: 559 Bytes

Contents

require "rails"
require "active_support/ordered_hash"

module NightcrawlerSwift
  class Railtie < Rails::Railtie
    railtie_name :nightcrawler_swift
    config.nightcrawler_swift = ActiveSupport::OrderedOptions.new

    rake_tasks do
      load "nightcrawler_swift/tasks/asset_sync.rake"
    end

    initializer "nightcrawler_swift.configure" do |app|
      settings = app.config.nightcrawler_swift
      logger = settings.delete(:logger) || Rails.logger

      NightcrawlerSwift.configure settings
      NightcrawlerSwift.logger = logger
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
nightcrawler_swift-1.0.0 lib/nightcrawler_swift/railtie.rb
nightcrawler_swift-0.11.1 lib/nightcrawler_swift/railtie.rb
nightcrawler_swift-0.11.0 lib/nightcrawler_swift/railtie.rb
nightcrawler_swift-0.10.0 lib/nightcrawler_swift/railtie.rb
nightcrawler_swift-0.9.0 lib/nightcrawler_swift/railtie.rb
nightcrawler_swift-0.8.1 lib/nightcrawler_swift/railtie.rb
nightcrawler_swift-0.8.0 lib/nightcrawler_swift/railtie.rb
nightcrawler_swift-0.7.0 lib/nightcrawler_swift/railtie.rb
nightcrawler_swift-0.6.0 lib/nightcrawler_swift/railtie.rb
nightcrawler_swift-0.5.0 lib/nightcrawler_swift/railtie.rb
nightcrawler_swift-0.4.0 lib/nightcrawler_swift/railtie.rb
nightcrawler_swift-0.3.0 lib/nightcrawler_swift/railtie.rb
nightcrawler_swift-0.2.3 lib/nightcrawler_swift/railtie.rb
nightcrawler_swift-0.2.2 lib/nightcrawler_swift/railtie.rb
nightcrawler_swift-0.2.1 lib/nightcrawler_swift/railtie.rb
nightcrawler_swift-0.2.0 lib/nightcrawler_swift/railtie.rb