Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 18th, 2019
94
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
class Parent < ActiveRecord::Base
class << self; alias_method :old_group, :group; end
scope :group, lambda { |g|
old_group("#{table_name}.#{g}")
}
end
Parent.join(:child).group(:name)
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
Python | 5 min ago | 1.17 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 10 min ago | 0.38 KB
Quant 3.0 Movement
C++ | 15 min ago | 1.16 KB
Untitled
C# | 20 min ago | 4.94 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 23 min ago | 0.39 KB
Untitled
C# | 38 min ago | 4.90 KB
json response
JSON | 53 min ago | 19.78 KB
snowybot trial
JavaScript | 57 min ago | 1.82 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!