angularjs_scaffold 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ function <%= @controller%>IndexCtrl($scope, <%= @model_name%>) {
|
|
5
5
|
dconfirm = confirm('Are you sure?');
|
6
6
|
if(dconfirm){
|
7
7
|
var original = this.<%= @resource_name%>
|
8
|
-
this.<%= @
|
8
|
+
this.<%= @resource_name%>.destroy(function() {
|
9
9
|
$scope.<%= @plural_model_name %> = _.without($scope.<%= @plural_model_name%>, original);
|
10
10
|
});
|
11
11
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: angularjs_scaffold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|