remotty-rails 0.0.3 → 0.0.4
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/config/locales/ko.yml +6 -0
- data/lib/remotty/rails/engine.rb +6 -0
- data/lib/remotty/rails/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: e043725f6f9c1dc51f0cc77df4ec1cbbafa822a0
|
4
|
+
data.tar.gz: 91ba8d93a7d4df9dfaa1be0e5fb5c5655118ff47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fbc464e058ef5306b94ce00cfd344df918b8ec5f5340ede0880604196d6164cf0851aedb884719a952be419f63b5960e2ca23fe53a835994185a3af2420a3ee
|
7
|
+
data.tar.gz: 1211144ad93292e1c042f25b0d2d92c4453b7a3286ffbf1be1c98e4e5c09d2c6c6d4670f30ea3fbce0c6feb28ca64548ad84e3fbe0354838fa5610931448ed95
|
data/README.md
CHANGED
data/config/locales/ko.yml
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
|
2
2
|
|
3
3
|
ko:
|
4
|
+
# devise
|
4
5
|
errors:
|
5
6
|
messages:
|
6
7
|
expired: "가(이) 만료되었습니다. 새로 요청해 주십시오"
|
@@ -56,3 +57,8 @@ ko:
|
|
56
57
|
subject: '비밀번호 변경 확인 메일'
|
57
58
|
unlock_instructions:
|
58
59
|
subject: '계정 Unlock 메일'
|
60
|
+
|
61
|
+
# cancan
|
62
|
+
unauthorized:
|
63
|
+
default: "접근 권한이 없습니다."
|
64
|
+
|
data/lib/remotty/rails/engine.rb
CHANGED
@@ -38,6 +38,12 @@ module Remotty::Rails
|
|
38
38
|
|
39
39
|
# cancan
|
40
40
|
include CanCan::ControllerAdditions
|
41
|
+
# authority 403 forbidden
|
42
|
+
rescue_from CanCan::AccessDenied do |exception|
|
43
|
+
render_error 'FORBIDDEN',
|
44
|
+
exception.message,
|
45
|
+
:forbidden
|
46
|
+
end
|
41
47
|
end
|
42
48
|
|
43
49
|
# paperclip
|