pundit_scaffold_generator 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +6 -11
- data/lib/pundit_scaffold_generator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0f2f446b8ae644e1563f27a9c237f5220e930ff09172299830ea75005f8a95b
|
4
|
+
data.tar.gz: 94449bd7b46aca62f9bef5f00915585ea7a263c277fc7bdb3f2cba9c24be458e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80c67cb49bef1ce626f9eff4085929a23c8632c994981e1fc1603b4d60d284c5cda904b7f61d222617d37752def830986c07640f09db2edcc1ae8f79befac1e0
|
7
|
+
data.tar.gz: 03eb1aff9f5ee5188c201222a9b2b546f3fe6a517220a9fb7648c554ebc18631f9ff3536803a32101fc61df191a979f646c18f6f94a2db0d25bc570f32c84a71
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,24 +1,19 @@
|
|
1
1
|
# PunditScaffoldGenerator
|
2
2
|
|
3
|
-
|
3
|
+
Gem `pundit` is quite a popular authorization tool for Rails projects.
|
4
|
+
Unfortunately it lacks the code to produce the files during `rails generate scaffold`.
|
4
5
|
|
5
|
-
|
6
|
+
This gem is intendet to close the hole.
|
6
7
|
|
7
8
|
## Installation
|
8
9
|
|
9
|
-
|
10
|
+
Add the line `gem 'pundit_scaffold_generator'` to your `Gemfile` in the group `:development, :test` and run `bundle install`
|
10
11
|
|
11
|
-
Install the gem and add to the application's Gemfile by executing:
|
12
|
-
|
13
|
-
$ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
14
|
-
|
15
|
-
If bundler is not being used to manage dependencies, install the gem by executing:
|
16
|
-
|
17
|
-
$ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
18
12
|
|
19
13
|
## Usage
|
20
14
|
|
21
|
-
|
15
|
+
The code for `<model>_policy.rb` and `<model>_policy_spec.rb` will be generated automatically when you run `rails generate scaffold` command.
|
16
|
+
|
22
17
|
|
23
18
|
## Development
|
24
19
|
|