Permalink
Browse files

public no longer exists in sinatra

  • Loading branch information...
elisehuard committed Feb 7, 2012
1 parent e87d1ba commit 1967686040523c0a9387387619f93f0f288dc085
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/helpers/main_helper.rb
@@ -18,11 +18,11 @@ def javascripts( scripts )
end
def v_styles(stylesheet)
- "/stylesheets/#{stylesheet}.css?" + File.mtime(File.join(Sinatra::Application.public, "stylesheets", "#{stylesheet}.css")).to_i.to_s
+ "/stylesheets/#{stylesheet}.css?" + File.mtime(File.join(Sinatra::Application.root, "..", "lib", "public", "stylesheets", "#{stylesheet}.css")).to_i.to_s
end
def v_js(js)
- "/javascripts/#{js}.js?" + File.mtime(File.join(Sinatra::Application.public, "javascripts", "#{js}.js")).to_i.to_s
+ "/javascripts/#{js}.js?" + File.mtime(File.join(Sinatra::Application.root, "..", "lib", "public", "javascripts", "#{js}.js")).to_i.to_s
end
def zone_locator
@@ -92,4 +92,4 @@ def escape_javascript(javascript)
end
end
end
-end
+end

0 comments on commit 1967686

Please sign in to comment.