destroyall 0.0.1 → 0.0.2
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 +4 -4
- data/README.md +6 -0
- data/destroyall-0.0.1.gem +0 -0
- data/destroyall.gemspec +1 -1
- data/lib/destroyall/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19307ce6b9f4e257eeb71043ba5a28477e51fde6
|
4
|
+
data.tar.gz: e09eebd0d33c63b56ea5529a41c152353bd7d15c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ce84fe09e42533e22c41dc11361866f484b38c4876160b4e6b9d1f466206bd98e56c28de3f39686337ee7566c3371a8fd2d75912647a06edf45248176d441c9
|
7
|
+
data.tar.gz: ce3c12c85888d7682ae8c700208373fdacd9c99b7f13cd3d2274031fb6dfb8a0fbaa4d230b1bef70c85fb7594ad4c5039de5b068543e2a79c3b34ade62a31c3d
|
data/README.md
CHANGED
@@ -47,6 +47,12 @@ Also you maybe need to create form for delete all records in your model
|
|
47
47
|
<%= f.submit "Delete" %>
|
48
48
|
<% end %>
|
49
49
|
|
50
|
+
or you can use simple method without gem
|
51
|
+
|
52
|
+
<%= form_for(User.destroy_all("last_login < '2004-04-04'"), :html => {:method => 'delete'}) do |f| %>
|
53
|
+
<%= f.submit "Delete" %>
|
54
|
+
<% end %>
|
55
|
+
|
50
56
|
If you need more information about methods using for gem work, please see rubydoc
|
51
57
|
|
52
58
|
$ http://apidock.com/rails/ActiveRecord/Base/destroy_all/class
|
Binary file
|
data/destroyall.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = %q{Simple gem for quick add destroy all method for all models. This gem add simple method destroyall for all models for quick destroy all records in table.}
|
13
13
|
spec.homepage = "https://github.com/Proalab/gem_destroy_all"
|
14
14
|
spec.license = "MIT"
|
15
|
-
spec.required_ruby_version = '
|
15
|
+
spec.required_ruby_version = '>= 1.0'
|
16
16
|
|
17
17
|
spec.files = `git ls-files`.split($/)
|
18
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
data/lib/destroyall/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: destroyall
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandr Basan
|
@@ -52,6 +52,7 @@ files:
|
|
52
52
|
- LICENSE.txt
|
53
53
|
- README.md
|
54
54
|
- Rakefile
|
55
|
+
- destroyall-0.0.1.gem
|
55
56
|
- destroyall.gemspec
|
56
57
|
- lib/destroyall.rb
|
57
58
|
- lib/destroyall/version.rb
|
@@ -65,7 +66,7 @@ require_paths:
|
|
65
66
|
- lib
|
66
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
67
68
|
requirements:
|
68
|
-
- - "
|
69
|
+
- - ">="
|
69
70
|
- !ruby/object:Gem::Version
|
70
71
|
version: '1.0'
|
71
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|