Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?
require 'sprockets'
project_root = File.expand_path(File.dirname(__FILE__))
assets = do |env|
env.logger =
env.register_transformer 'text/sass', 'text/css',
assets.append_path(File.join(project_root, 'source', 'assets', 'stylesheets'))
puts assets.find_asset('application.css')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment