PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
real-time
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free!
Click here to download the new Pastebin App for iOS
.
Public Pastes
Untitled
2 sec ago
Untitled
2 sec ago
Untitled
5 sec ago
Untitled
7 sec ago
Untitled
7 sec ago
Untitled
7 sec ago
Untitled
7 sec ago
Candyman 3 Day of ...
7 sec ago
Untitled
By: a guest on Feb 11th, 2012 | syntax:
None
| size: 0.27 KB | hits: 45 | expires: Never
download
|
raw
|
embed
|
report abuse
Copied
def self.with_registrar_scope(rid)
with_scope(
:find => {:conditions => {:registrar_id => rid}},
:create => {:registrar_id => rid}
) do
yield
end
end
# plus court ?
named_scope :with_registrar, lambda {|rid| :conditions => { :registrar_id => rid } }
create a
new version
of this paste
RAW Paste Data
def self.with_registrar_scope(rid) with_scope( :find => {:conditions => {:registrar_id => rid}}, :create => {:registrar_id => rid} ) do yield end end # plus court ? named_scope :with_registrar, lambda {|rid| :conditions => { :registrar_id => rid } }