Sha256: 610df08d16bbec6652836e1cd4367d6609df9aab3c6fbe3706afe3c54fe1aa5e

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

require 'active_support'

module ActiveAssets
  module ActiveExpansions
    autoload :Asset, 'active_assets/active_expansions/asset'
    autoload :AssetScope, 'active_assets/active_expansions/asset_scope'
    autoload :TypeInferrable, 'active_assets/active_expansions/type_inferrable'
    autoload :Configurable, 'active_assets/active_expansions/configurable'
    autoload :Expansion, 'active_assets/active_expansions/expansion'
    autoload :Assets, 'active_assets/active_expansions/assets'
    autoload :Javascripts, 'active_assets/active_expansions/javascripts'
    autoload :Stylesheets, 'active_assets/active_expansions/stylesheets'
    autoload :Expansions, 'active_assets/active_expansions/expansions'

    def self.define_tasks
      namespace :activeexpansions do
        desc "Cache the active expansions to the {stylesheets,javascripts} cache directory"
        task :cache => :environment do
          Rails.application.expansions.javascripts.cache! and Rails.application.expansions.stylesheets.cache!
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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