spec/dummy/app/assets/javascripts/dummy/blog/posts/show.js.coffee in initjs-1.0.0 vs spec/dummy/app/assets/javascripts/dummy/blog/posts/show.js.coffee in initjs-1.0.1
- old
+ new
@@ -1,6 +1,5 @@
-Dummy.Blog = {} if Dummy.Blog is undefined
-Dummy.Blog.Posts = {} if Dummy.Blog.Posts is undefined
+Dummy.Blog ?= {}
+Dummy.Blog.Posts ?= {}
Dummy.Blog.Posts.Show =->
$('.javascript-content').html "Blog::Posts show content"
-