Sha256: d85b58fcec0bbdb269fd2c3c3d9a2384a24007bfdba6eb3cdde6e9ba1dbc20c2
Contents?: true
Size: 783 Bytes
Versions: 1
Compression:
Stored size: 783 Bytes
Contents
require 'active_support' module ActiveAssets module ActiveSprites extend ActiveSupport::Autoload autoload :SpritePiece autoload :Sprite autoload :Sprites autoload :SpriteStylesheet autoload :Runner 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.2 | lib/active_assets/active_sprites.rb |