Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b24d9741e6
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (23 sloc) 0.4 kb
class VoteCell < Cell::Rails
def show(voteable, user)
@voteable = voteable
@user = user
render
end
def up(voteable, user)
@voteable = voteable
@user = user
if user
@vote = voteable.vote(user)
end
render
end
def down(voteable, user)
@voteable = voteable
@user = user
if user
@vote = voteable.vote(user)
end
render
end
end
Jump to Line
Something went wrong with that request. Please try again.