todo_rails 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e68f2ed1e598cce6848ace9635863e11fa9b2069
|
4
|
+
data.tar.gz: 07f047a1268f7a2e6d7de0fb92c7b79326ccda31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b04eb41e695d59d95afc3852a177205409060fb6bed1231ccfe347ccb42613470343320d61af62f5deae41666e5098c1f7c51980cd723ea4dedcbb6d84a176b
|
7
|
+
data.tar.gz: fbaa8842260019af9b77963c98dcab8ded72a92d7f65361b3ec0682a30997d79a100891727bf40aba75ca6b658c63f9130bc9ab573051ecbd1b0f42478292839
|
@@ -18,9 +18,9 @@ angular.module('todoRails.controllers').controller 'todoCtrl', [
|
|
18
18
|
|
19
19
|
$scope.addTodo = ->
|
20
20
|
todo =
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
|
22
|
+
title: $scope.todoText
|
23
|
+
completed: false
|
24
24
|
todos.post todo
|
25
25
|
$scope.todoText = ''
|
26
26
|
$scope.reload()
|
@@ -49,7 +49,7 @@ module TodoRails
|
|
49
49
|
|
50
50
|
# Only allow a trusted parameter "white list" through.
|
51
51
|
def task_params
|
52
|
-
params.
|
52
|
+
params.permit(:title, :completed, :row_order, :priority, :comment)
|
53
53
|
end
|
54
54
|
end
|
55
55
|
end
|
data/lib/todo_rails/version.rb
CHANGED