Sha256: 029b50a1e7912fbdb38e7a7d58611728cb3f28795355f499c4569842cd140903

Contents?: true

Size: 749 Bytes

Versions: 12

Compression:

Stored size: 749 Bytes

Contents

module Wiselinks
  module Rails
    class Engine < ::Rails::Engine
      initializer 'wiselinks.register_logger' do        
        Wiselinks.options[:logger] = ::Rails.logger
      end

      initializer "wiselinks.register_extensions"  do
        ActionDispatch::Request.send :include, Request
        ActionController::Base.send :include, Headers
        ActionView::Base.send :include, Helpers        
      end    

      initializer "wiselinks.register_assets_digest"  do
        if ::Rails.application.config.assets.digest && ::Rails.application.config.assets.digests.present?
          Wiselinks.options[:assets_digest] ||= Digest::MD5.hexdigest(::Rails.application.config.assets.digests.values.join)
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
wiselinks-0.4.2 lib/wiselinks/rails.rb
wiselinks-0.4.1 lib/wiselinks/rails.rb
wiselinks-0.4.0 lib/wiselinks/rails.rb
wiselinks-0.3.9 lib/wiselinks/rails.rb
wiselinks-0.3.8 lib/wiselinks/rails.rb
wiselinks-0.3.7 lib/wiselinks/rails.rb
wiselinks-0.3.6 lib/wiselinks/rails.rb
wiselinks-0.3.5 lib/wiselinks/rails.rb
wiselinks-0.3.4 lib/wiselinks/rails.rb
wiselinks-0.3.3 lib/wiselinks/rails.rb
wiselinks-0.3.2 lib/wiselinks/rails.rb
wiselinks-0.3.0 lib/wiselinks/rails.rb