Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Feb 12th, 2019
98
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Ruby
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
def
sort_column
User.
column_names
.
include
?
(
params
[
:sort
]
)
? params
[
:sort
]
:
"name"
end
def
sort_direction
%
w
[
asc desc
]
.
include
?
(
params
[
:direction
]
)
? params
[
:direction
]
:
"asc"
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
ELM327 ARDUINO
C++ | 10 min ago | 2.66 KB
💲 G2A.com Free Gift Card Guide Mar 2024 💲
GetText | 19 min ago | 0.54 KB
Untitled
C++ | 27 min ago | 3.13 KB
HUBPS99
Lua | 37 min ago | 14.29 KB
PSHUB
Lua | 45 min ago | 170.02 KB
Disable Automatic Reboot After Windows 10 Upd...
Batch | 46 min ago | 0.19 KB
chat_sample_multidim_integral
Python | 48 min ago | 0.96 KB
Untitled
Lua | 1 hour ago | 45.75 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!