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
| class CipherKey | |
| ALPHABET = %w(а б в г д е ё ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь э ю я) | |
| def initialize() | |
| end | |
| def create_table | |
| table = ALPHABET << " " | |
| new_table = table.shuffle |
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
| class FindingAction | |
| belongs_to :creator | |
| def notify_creator(updater) | |
| FindingActionNotifier.send_creator_notification(self) if should_notify_creator?(updater) | |
| end | |
| private | |
| def should_notify_creator?(updater) |
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
| class Objective | |
| #request | |
| def locked? | |
| locked_by.present? && | |
| [LOCK_STATUSES[:uploading], LOCK_STATUSES[:locked]].include?(lock_status) | |
| end | |
| #command | |
| def release_lock | |
| assign_attributes( |
NewerOlder