lib/sinatra/classy_assets.rb in classy_assets-0.4.1 vs lib/sinatra/classy_assets.rb in classy_assets-0.4.2
- old
+ new
@@ -15,9 +15,13 @@
def javascript_tag(sources)
::ClassyAssets.asset_tag_from(sources, 'js') do |asset_url|
%Q{<script src="#{asset_url}"></script>}
end
end
+
+ def asset_url(source)
+ ::ClassyAsset.asset_url_for(source)
+ end
end
def self.registered(app)
app.use ::Rack::ClassyAssets
app.helpers Helpers