This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Traversing arrays and objects in CoffeeScript | |
# The array and object we use for testing | |
arr = [1, 2, 3, 4, 5] | |
obj = {a: 1, b: 2, c: 3, d: 4, e: 5} | |
# 'in' has a different meaning in CoffeeScript than in JavaScript | |
# CS: element in array -> JS: array.indexOf(element) >= 0 | |
console.log '5 in arr: ' + (5 in arr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/init.rb b/init.rb | |
index 0d3028b..65f949c 100644 | |
--- a/init.rb | |
+++ b/init.rb | |
@@ -18,7 +18,7 @@ | |
# along with redmine_checklists. If not, see <http://www.gnu.org/licenses/>. | |
require 'redmine' | |
-require 'redmine_checklists/redmine_checklists' | |
+require 'redmine_checklists' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/init.rb b/init.rb | |
index 57ff0d8..c2d2bdb 100755 | |
--- a/init.rb | |
+++ b/init.rb | |
@@ -107,6 +107,4 @@ Redmine::Plugin.register :redmine_contacts do | |
end | |
-ActionDispatch::Callbacks.to_prepare do | |
- require 'redmine_contacts' |