Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Feb 21st, 2018
66
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
scope :rating_desc, -> { order(rating: :desc) }
def highest_rating_comment
comments.rating_desc.first
end
<%= @product.highest_rating_comment %>
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
C++ | 12 min ago | 0.68 KB
Semi primes
Python | 17 min ago | 0.63 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 43 min ago | 0.38 KB
Untitled
Python | 44 min ago | 1.41 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 48 min ago | 0.39 KB
Untitled
C++ | 54 min ago | 0.46 KB
Untitled
C++ | 58 min ago | 0.24 KB
Teste 2
Lua | 1 hour ago | 39.95 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
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!