easy_login 1.1.2 → 1.2.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 +4 -4
- data/README.md +3 -4
- data/lib/easy_login/permission.rb +1 -1
- data/lib/easy_login/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6194aa3fc4827e994170926d3ec41f3fea890f62
|
|
4
|
+
data.tar.gz: ef6dcb4c78ca7d217ae52bb38e1443cba0f50b74
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8682402e0e9f95557dfeec1dd190e38d6e1a21a010c32e51929dc60af8c5f8c1283eb3093f676438785ed6d8b733a8b7cbd277c72f58a5047be78c0cc98b427f
|
|
7
|
+
data.tar.gz: 6270c1922ba160529ea67b5a5729080b16d06a1bedd96ebd8fee04737a46751e1e7e700ed40f4cce8c8d7e75d85f87106867e4197c81774598f94e8dbd8783a0
|
data/README.md
CHANGED
|
@@ -43,7 +43,7 @@ And then abosultely use all methods above in controller and view
|
|
|
43
43
|
|
|
44
44
|
Also you can declare a redirect schema for differenct user accessing differect
|
|
45
45
|
controller and action
|
|
46
|
-
Add a config file to `config/
|
|
46
|
+
Add a config file to `config/http_permissions.yml` as following
|
|
47
47
|
|
|
48
48
|
```yaml
|
|
49
49
|
default:
|
|
@@ -73,9 +73,8 @@ controller:
|
|
|
73
73
|
user_role3: raise->{message}
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
The `user_role` if the role attribute of your user model configed in
|
|
77
|
-
`
|
|
78
|
-
`action` has 3 types
|
|
76
|
+
The `user_role` if the role attribute of your user model configed in `config/application.rb` or `config/environments/*.rb`
|
|
77
|
+
The `action` has 3 types
|
|
79
78
|
|
|
80
79
|
```
|
|
81
80
|
pass --> run the logic in action normally
|
|
@@ -15,7 +15,7 @@ module EasyLogin
|
|
|
15
15
|
|
|
16
16
|
private
|
|
17
17
|
def self.parse(controller_ins)
|
|
18
|
-
per = YAML.load_file Rails.root.join "config", "
|
|
18
|
+
per = YAML.load_file Rails.root.join "config", "http_permissions.yml"
|
|
19
19
|
controller = controller_ins.params[:controller]
|
|
20
20
|
action = controller_ins.params[:action]
|
|
21
21
|
|
data/lib/easy_login/version.rb
CHANGED