Sha256: dc690f381c0a3284126116a8733e56b44f6b32a3aacfabeb2f7d556059289cca
Contents?: true
Size: 847 Bytes
Versions: 1
Compression:
Stored size: 847 Bytes
Contents
require 'active_support' module ActiveAssets module ActiveSprites extend ActiveSupport::Autoload autoload :SpritePiece autoload :Sprite autoload :Sprites autoload :Configurable autoload :SpriteStylesheet autoload :RmagickRunner autoload :ChunkyPngRunner def self.load_engine_tasks(engine_class) desc "Generate sprites" task :sprites do require 'rails' require 'rails/active_sprites' Rails.application ||= Class.new(Rails::Application) Rails.application.extend Rails::ActiveSprites engine = engine_class.new sprite_path = File.join(engine.config.paths.config.paths.first, 'sprites.rb') if File.exists?(sprite_path) load sprite_path Rails.application.sprites.generate!(engine) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_assets-0.2.3 | lib/active_assets/active_sprites.rb |