rails_admin_discard 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 6273787e905d505d2482856b367d125e9e803dc64f2927d386414f7f38242c70
4
- data.tar.gz: 4a87633a9f231d7560a0b1bc807938b16b79c8407f8b60721ebf70bc766948d3
3
+ metadata.gz: 1645552ccbd39d33a80c250f8e627270ec5041d1530721a45801b1174c9fc878
4
+ data.tar.gz: 42fdd04cb23a2cfa1886a70d38c369b99fff2ded9e6d683fc30e9713a0ed05c8
5
5
  SHA512:
6
- metadata.gz: 6a0905f1fa0019df5cd7aa8fb830679c3596dd7e90a3a7ee5f675d1296625d65386d965ca58279c48d075ebf13266d9369c87e259c7a77713aa3f5c21e9cdbaa
7
- data.tar.gz: 1d123e2487a13ee3b3e38261399112f650fa2e2c7d778be6fac95dea9dc96d3fd4c55c818e1b53ab6e5a46c8be077cba2577e471c0dfcc9dd40d42e9c2bdc00b
6
+ metadata.gz: 98c0a7e9252b9947bfae38bd52369b5afcb59bf413399827b12f2f2db93884c7515c84d88bdc5be09105f29b70a439823741e2e4a92e6bff0a6a8242979aa6fc
7
+ data.tar.gz: f6b49dcacb04265304bf8413902cac45e7c4b3f457c6575d1b76155616b7aaded6f7521cc4d71a7e044886cc0e0e94cab96cb728ddde484b0751e54db4d7f3d9
data/README.md CHANGED
@@ -1,8 +1,31 @@
1
1
  # RailsAdminDiscard
2
- Short description and motivation.
2
+ A poor implementation of custom actions of rails admin to use discard gem.
3
3
 
4
4
  ## Usage
5
- How to use my plugin.
5
+ In your `rails_admin.rb`
6
+ ```ruby
7
+ config.actions do
8
+ discard
9
+ end
10
+ ```
11
+
12
+ You may need to use in specific models:
13
+ ```ruby
14
+ config.actions do
15
+ discard do
16
+ only [YourModel]
17
+ end
18
+ end
19
+ ```
20
+
21
+ if you want to remove delete:
22
+ ```ruby
23
+ config.actions do
24
+ delete do
25
+ except [YourModel]
26
+ end
27
+ end
28
+ ```
6
29
 
7
30
  ## Installation
8
31
  Add this line to your application's Gemfile:
@@ -1,3 +1,3 @@
1
1
  module RailsAdminDiscard
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_discard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dayves
@@ -54,7 +54,7 @@ files:
54
54
  - lib/rails_admin_discard.rb
55
55
  - lib/rails_admin_discard/engine.rb
56
56
  - lib/rails_admin_discard/version.rb
57
- homepage: https://jera.com.br
57
+ homepage: https://github.com/dayves/rails_admin_discard
58
58
  licenses:
59
59
  - MIT
60
60
  metadata: {}