lib/generators/rails_script/install/templates/base.js.coffee in rails_script-0.0.4 vs lib/generators/rails_script/install/templates/base.js.coffee in rails_script-0.0.5
- old
+ new
@@ -4,12 +4,12 @@
constructor: ->
return this
create: ->
- $this.new()
- return
+ if typeof $this.new == 'function'
+ return $this.new()
update: ->
- $this.edit()
- return
+ if typeof $this.edit == 'function'
+ return $this.edit()
\ No newline at end of file