Sha256: 46218213d90a9b93d47c057766d05352718bb4365687bd454883aa4da20ddfb9

Contents?: true

Size: 469 Bytes

Versions: 2

Compression:

Stored size: 469 Bytes

Contents

require 'active_support'

module ActiveAssets
  autoload :ActiveExpansions, 'active_assets/active_expansions'
  autoload :ActiveSprites, 'active_assets/active_sprites'

  def self.rails2?
    rv = Rails.version rescue nil
    rv ||= RAILS_GEM_VERSION rescue nil
    rv ||= Gem.loaded_specs.find { |n,spec| n == 'rails' }[1].version.to_s

    Gem::Version.new(rv) < Gem::Version.new('3.0.0.beta')
  end
end

require 'active_assets/rails2_support' if ActiveAssets.rails2?

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_assets-0.3.1 lib/active_assets.rb
active_assets-0.3.0 lib/active_assets.rb