This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module CommonNext | |
| extend ActiveSupport::Concern | |
| def previous_record | |
| self.class.unscoped.where('id < ?', self.id).order(:id).last | |
| end | |
| # Find Next Record Method | |
| def next_record | |
| self.class.unscoped.where('id > ?', self.id).order(:id).first |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ja: | |
| devise: | |
| failure: | |
| already_authenticated: 'あなたは既にログインしています。' | |
| unauthenticated: '続けるには、ログインか、アカウントの登録が必要です。' | |
| unconfirmed: '続けるには、アカウントの確認が必要です。' | |
| locked: 'あなたのアカウントはロックされています。' | |
| invalid: 'メールアドレスかパスワードが間違っています。' | |
| invalid_token: '認証トークンが有効ではありません。' | |
| timeout: 'セッションが切れました。再度ログインし直してください。' |