Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (5 sloc) 336 Bytes
# Include hook code here
require File.dirname(__FILE__)+"/lib/harsh.rb"
ActionView::Base.send(:include, Harsh::ErbMethods)
harsh_sheets = Dir.entries(Rails.root.join('public', 'stylesheets', 'harsh')).reject {|s| s =~ /^\./}.map {|s| "harsh/"+s}
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :harsh => harsh_sheets