lib/troy/helpers.rb in troy-0.0.34 vs lib/troy/helpers.rb in troy-0.0.35

- old
+ new

@@ -7,12 +7,12 @@ def t(*args) I18n.t(*args) end def partial(name, locals = {}) + name = name.to_s basename = File.basename(name) dirname = File.dirname(name) - partial = [] partial << dirname unless dirname.start_with?(".") partial << "_#{basename}.erb" partial = partial.join("/")