lib/generators/backbone/install/install_generator.rb in rails-backbone-0.2.0 vs lib/generators/backbone/install/install_generator.rb in rails-backbone-0.5.0
- old
+ new
@@ -13,17 +13,17 @@
"//= require underscore\n//= require backbone\n//= require backbone_rails_sync\n//= require backbone_datalink\n//= require backbone/#{application_name}\n"
end
end
def create_dir_layout
- %W{controllers models views templates}.each do |dir|
+ %W{routers models views templates}.each do |dir|
empty_directory "app/assets/javascripts/backbone/#{dir}"
create_file "app/assets/javascripts/backbone/#{dir}/.gitkeep" unless options[:skip_git]
end
end
def create_app_file
- template "app.coffee", "app/assets/javascripts/backbone/#{application_name}.coffee"
+ template "app.coffee", "app/assets/javascripts/backbone/#{application_name}.js.coffee"
end
protected
def application_name
if defined?(Rails) && Rails.application
\ No newline at end of file