remotty-rails 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc4301b92aef99d64c32ca021fbf84f83f43931e
4
- data.tar.gz: 5828b70eef0507dd0ffb7a78f513e14ea24365a4
3
+ metadata.gz: e043725f6f9c1dc51f0cc77df4ec1cbbafa822a0
4
+ data.tar.gz: 91ba8d93a7d4df9dfaa1be0e5fb5c5655118ff47
5
5
  SHA512:
6
- metadata.gz: af2fdbeaa5b0795a40d21fb3d17d0b72942fcf8d65d3f441e17e1323c7dd872421d31cd6dea5c38c049891edf3665893896e950a71e814b84c2f755c66a4fe82
7
- data.tar.gz: c213217609d3e7ae4c8dee24e8ecbed099d0bab304c29cb0da7ede032cc9a936f78f8ee54e10e4dc5c5f571682acd3abd4a237435b94800b3c47de307094a031
6
+ metadata.gz: 4fbc464e058ef5306b94ce00cfd344df918b8ec5f5340ede0880604196d6164cf0851aedb884719a952be419f63b5960e2ca23fe53a835994185a3af2420a3ee
7
+ data.tar.gz: 1211144ad93292e1c042f25b0d2d92c4453b7a3286ffbf1be1c98e4e5c09d2c6c6d4670f30ea3fbce0c6feb28ca64548ad84e3fbe0354838fa5610931448ed95
data/README.md CHANGED
@@ -231,6 +231,10 @@ end
231
231
  config.remember_for = 2.weeks
232
232
  ```
233
233
 
234
+ ### cancan i18n
235
+
236
+ https://github.com/ryanb/cancan/wiki/Translating-your-app
237
+
234
238
  ## Contributing
235
239
 
236
240
  1. Fork it ( https://github.com/remotty/remotty-rails/fork )
@@ -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
+
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Remotty
2
2
  module Rails
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remotty-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chungsub Kim