Sha256: 4831d3fdc7dc2fe752fbd1fd5be498d1eb05e76a9e3a5758426b2f8ec2166a3d
Contents?: true
Size: 525 Bytes
Versions: 19
Compression:
Stored size: 525 Bytes
Contents
Rails.application.sprites do sprite 'sprites/3.png' => 'sprites/3.css' do _"sprite_images/sprite3/1.png" => ".klass_1" _"sprite_images/sprite3/2.png" => ".klass_2" end sprite 'sprites/4.png' do Dir[Rails.root.join('public/images/sprite_images/sprite4/*.{png,gif,jpg}')].each do |path| image_path = path[%r{^.*/public/images/(.*)$}, 1] klass_name = ".klass_#{File.basename(image_path, File.extname(image_path)).split(' ').join('_').downcase}" sp image_path => klass_name end end end
Version data entries
19 entries across 17 versions & 1 rubygems