lib/generators/rails_script/element/templates/javascript.js.coffee in rails_script-0.2.0 vs lib/generators/rails_script/element/templates/javascript.js.coffee in rails_script-0.3.0
- old
+ new
@@ -1,6 +1,6 @@
window.Element ||= {}
class Element.<%= element_name.gsub('::', '') %> <%= "extends Utility.#{utility.gsub('::', '')}" unless utility.blank? %>
constructor: ->
- super
+ <%= "super" unless utility.blank? %>
return this
\ No newline at end of file