CARVIEW |
Select Language
HTTP/2 200
date: Mon, 13 Oct 2025 07:41:50 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=d0c9db586440248239a68a4bca424ab7742f64fb8c420616f06fe52d9ac0c2e8a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22bbwZJsiL3H3jmljpqB0pBwWEdVb705Ye%22%3B%7D; HttpOnly; Path=/
cf-ray: 98dd3265181d1712-BLR
Model - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Card < ApplicationRecord
- validates :original_text, :translated_text,
- presence: true
- validate :check_texts_for_equality
- before_create :set_review_date
- scope :needs_review, -> {where('review_date <= ?', 3.days.ago).order('RANDOM()')}
- def check_translation
- self.original_text.downcase ==
- self.translated_text.downcase
- end
- def set_new_review_date
- if check_translation
- self.review_date = Time.now
- end
- end
- private
- def check_texts_for_equality
- if original_text.downcase.squish ==
- translated_text.downcase.squish
- errors.add(:original_text, message: "U Shell not Pass")
- end
- end
- def set_review_date
- self.review_date = 3.days.since
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐Make $1500 in 20 minutes⭐⭐
Java | 3 sec ago | 0.15 KB
-
✅⭐ Make huge profits on trading ⭐⭐ P
JavaScript | 3 sec ago | 0.25 KB
-
📝 MAKE $2500 IN 15 MIN ✅ Working
JavaScript | 4 sec ago | 0.24 KB
-
✅ Marketplace Glitch ✅ Working NEVER SEEN BE...
JavaScript | 12 sec ago | 0.25 KB
-
⚡ Crypto Swap Glitch ✅ Working ⚡
JavaScript | 14 sec ago | 0.24 KB
-
⭐⭐⭐Swapzone.io Glitch (Working)⭐⭐
Java | 14 sec ago | 0.15 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ Y
JavaScript | 21 sec ago | 0.25 KB
-
💡 Instant BTC Profit Method ✅ Working
JavaScript | 23 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand