lib/generators/administrate/views/field_generator.rb in administrate-0.20.1 vs lib/generators/administrate/views/field_generator.rb in administrate-1.0.0.beta1
- old
+ new
@@ -5,11 +5,11 @@
module Views
class FieldGenerator < Administrate::ViewGenerator
def self.template_source_path
File.expand_path(
"../../../../../app/views/fields/",
- __FILE__,
+ __FILE__
)
end
source_root template_source_path
@@ -39,10 +39,10 @@
def copy_field_partial(resource_path, partial_name)
template_file = "#{resource_path}/_#{partial_name}.html.erb"
copy_file(
template_file,
- "app/views/fields/#{template_file}",
+ "app/views/fields/#{template_file}"
)
end
end
end
end