Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use interpolation.

  • Loading branch information...
commit f3f10939ee84f111110a34632e42fe6733ba6354 1 parent c24934f
Francesc Esplugas authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/helpers/admin/form_helper.rb
View
2  app/helpers/admin/form_helper.rb
@@ -346,7 +346,7 @@ def typus_form_has_one(field)
# OPTIMIZE: Cleanup the rescue ...
def typus_template_field(attribute, template, options = {})
- template_name = File.join('admin', 'templates', "#{template}")
+ template_name = "admin/templates/#{template}"
custom_options = { :start_year => @resource[:class].typus_options_for(:start_year),
:end_year => @resource[:class].typus_options_for(:end_year),
Please sign in to comment.
Something went wrong with that request. Please try again.