lib/eyeballs/app_detector.rb in eyeballs-0.5.2 vs lib/eyeballs/app_detector.rb in eyeballs-0.5.3
- old
+ new
@@ -18,9 +18,21 @@
else
'.'
end
end
+ def public_path
+ @public_path ||= if rack_app?
+ 'public'
+ else
+ '.'
+ end
+ end
+
+ def prefix
+ '/public/' if rack_app?
+ end
+
def rack_app?
File.exists?('public')
end
end
\ No newline at end of file