anadea-identity 0.3.2 → 0.3.3
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 +4 -0
- data/lib/identity.rb +1 -0
- data/lib/identity/mixins/user.rb +2 -2
- data/lib/identity/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: 144a086bede98ce02f88db7719f3e7fc630676e1
|
|
4
|
+
data.tar.gz: 843574ae000c7ba9005e583742f35c139ff3ca14
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ad2ab345971f0145f019b85a5005048c4c481dc800a3b2e9568aaded089d51cb6255f1898fc7dfeeb079e1718baac99c83bf03730c36cde6f496d8e4132c07f
|
|
7
|
+
data.tar.gz: 0b4b2ed8782f6610ed0b0834b90db800937abf31701008e813514cf8caf7a5ee4f8954b21d081b88df09c55bf4747eab2bd41f93bb1ce3e74e3b51add397ecdd
|
data/README.md
CHANGED
|
@@ -78,6 +78,10 @@ email/пароль/подтверждение пароля), восстанов
|
|
|
78
78
|
прочего. По умолчанию используется главный макет вашего приложения –
|
|
79
79
|
`"application"`.
|
|
80
80
|
|
|
81
|
+
* `active_scope` – скоуп, используемый системой для поиска пользователей.
|
|
82
|
+
Вы можете посредством его блокировать некоторых пользователей.
|
|
83
|
+
Например, `:active`. По умолчанию `:all`, то есть, все пользователи.
|
|
84
|
+
|
|
81
85
|
* `config.auth_routes` – позволяет передать опции для роутов Devise, подключаемых
|
|
82
86
|
приложением. Если указать `false`, маршруты подключены не будут и вы
|
|
83
87
|
можете сами подключить их.
|
data/lib/identity.rb
CHANGED
data/lib/identity/mixins/user.rb
CHANGED
|
@@ -19,8 +19,8 @@ module Identity
|
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
def find_first_by_auth_conditions(tainted_conditions, opts={
|
|
23
|
-
super(tainted_conditions, opts)
|
|
22
|
+
def find_first_by_auth_conditions(tainted_conditions, opts = {})
|
|
23
|
+
super(tainted_conditions, send(Identity.active_scope.where_values_hash).merge(opts))
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def active
|
data/lib/identity/version.rb
CHANGED