Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Feb 20th, 2018
70
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
class Customer
def self.options_for_select
all.collect do |customer|
[customer.formatted_for_option, customer.id]
end
end
def formatted_for_option
"#{id}: #{title}"
end
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
BetterDamageForIsaac
Lua | 8 min ago | 0.93 KB
zad_daa
C++ | 8 min ago | 1.55 KB
Untitled
PHP | 11 min ago | 0.30 KB
Cupcake with Stacks
CSS | 13 min ago | 0.76 KB
💲 G2A.com Free Gift Card Guide Mar 2024 💲
GetText | 15 min ago | 0.45 KB
Mirror Words
Python | 15 min ago | 0.59 KB
Untitled
Java | 17 min ago | 1.02 KB
Lesson25
C++ | 17 min ago | 0.66 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!