Sha256: 4b72a1c5487fe17b47f57a4ab03f9bfe6fca4bd9a6166c3774e3829aa2d12122
Contents?: true
Size: 525 Bytes
Versions: 7
Compression:
Stored size: 525 Bytes
Contents
Rails.application.sprites do sprite 'sprites/3.png' => 'sprites/3.css' do _"sprite_images/sprite3/1.gif" => ".klass_1" _"sprite_images/sprite3/2.gif" => ".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
7 entries across 7 versions & 1 rubygems