lib/rails/generators/joosy/layout_generator.rb in joosy-1.0.0.RC3 vs lib/rails/generators/joosy/layout_generator.rb in joosy-1.0.0.RC4
- old
+ new
@@ -6,13 +6,11 @@
source_root File.join(File.dirname(__FILE__), 'templates')
def create_files
super
- empty_directory "#{app_path}/layouts"
template "app/layouts/template.js.coffee", "#{app_path}/layouts/#{file_name}.js.coffee"
- empty_directory "#{app_path}/templates/layouts"
create_file("#{app_path}/templates/layouts/#{file_name}.jst.#{options[:template_kind]}")
end
protected
\ No newline at end of file