Sha256: a30628f21331939df47db6a735ed2623fcc029f2ae2e7caaca54726666dea6ae

Contents?: true

Size: 505 Bytes

Versions: 2

Compression:

Stored size: 505 Bytes

Contents

module Soundmanager
  if defined?(::Rails) and ::Rails.version >= "3.1"
    ENV = ::Rails.env
    module Rails
      class Engine < ::Rails::Engine

        initializer 'soundmanager.assets' do |app|
          app.config.assets.precompile += %w(
            swf/soundmanager2.swf
            swf/soundmanager2_debug.swf
            swf/soundmanager2_flash9.swf
            swf/soundmanager2_flash9_debug.swf
          )
        end

      end
    end
  else
    ENV = ''
  end

  def self.env; ENV end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
soundmanager-rails-1.0.1 lib/soundmanager-rails/engine.rb
soundmanager-rails-1.0.0 lib/soundmanager-rails/engine.rb