tyop and history fix
This commit is contained in:
parent
b7d0e181d8
commit
1ab4d353fa
|
@ -109,7 +109,7 @@ class BackboneGenerator < Thor
|
|||
|
||||
desc "app-helper", "Generate an application helper for useful Backbone things"
|
||||
def app_helper
|
||||
template("app_helper.#{extension}.erb", File.join(script_target, "applications", "backbone_helper.#{extension}"))
|
||||
template("app_helper.#{extension}.erb", File.join(script_target, "application", "backbone_helper.#{extension}"))
|
||||
end
|
||||
|
||||
desc "app-scaffold", "Generate an application scaffold"
|
||||
|
|
|
@ -113,7 +113,7 @@ describe 'backbone-generator' do
|
|||
it "should generate an app helper" do
|
||||
run "app-helper", '--coffee'
|
||||
|
||||
File.file?(collection = 'app/assets/javascripts/applications/backbone_helper.coffee').should be_true
|
||||
File.file?(collection = 'app/assets/javascripts/application/backbone_helper.coffee').should be_true
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -249,7 +249,7 @@ describe 'backbone-generator' do
|
|||
it "should generate an app helper" do
|
||||
run "app-helper"
|
||||
|
||||
File.file?(collection = 'public/javascripts/applications/backbone_helper.js').should be_true
|
||||
File.file?(collection = 'public/javascripts/application/backbone_helper.js').should be_true
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
class window.AppView extends Backbone.View
|
||||
el: '#application'
|
||||
routes: {}
|
||||
template: JST['application/app_view']
|
||||
initialize: ->
|
||||
controller = new Controller({app: this})
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
var AppView = Backbone.View.extend({
|
||||
el: '#application',
|
||||
routes: {},
|
||||
template: JST['application/app_view'],
|
||||
initialize: function() {
|
||||
_.bindAll(this, 'render');
|
||||
|
|
Loading…
Reference in New Issue