lib/sinatra/assetpack/helpers.rb in sinatra-assetpack-0.1.1 vs lib/sinatra/assetpack/helpers.rb in sinatra-assetpack-0.1.2

- old
+ new

@@ -54,8 +54,17 @@ end def asset_path_for(file, from) settings.assets.dyn_local_file_for file, from end + + def assets_expires + if settings.assets.expires.nil? + expires 86400*30, :public + else + expires *settings.assets.expires + end + end + end end end