lib/chester/templates/helper.coffee.erb in chester-0.2.0 vs lib/chester/templates/helper.coffee.erb in chester-0.3.1
- old
+ new
@@ -1,5 +1,8 @@
class <%= name %>
- name: '<%= name %>'
+ constructor: (name) ->
+ @name: name
+
# Insert your code here
-Chester.Application.Helpers.add(new <%= name %>())
+
+Chester._('app').Helpers.add(new <%= name %>('<%= name %>'))
\ No newline at end of file