lib/bulldog/interpolation.rb in bulldog-0.0.15 vs lib/bulldog/interpolation.rb in bulldog-0.1.0

- old
+ new

@@ -63,9 +63,13 @@ raise Error, ":extension interpolation requires storing the file name - add a column #{name}_file_name or use store_attributes" basename = record.send(column_name) or raise Error, ":extension interpolation used when file_name not set - if you need to interpolate the url, pass a :basename override" File.extname(basename).sub(/\A\./, '') end + + to_interpolate(:root) do + Bulldog.path_root + end end # # Reset the list of interpolation definitions. #