Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. class User < ApplicationRecord
  2. def my_point(user)
  3. point = user.posts.count * 10 + user.followers.count * 2
  4. end
  5. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement