Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class User < ApplicationRecord
- def my_point(user)
- point = user.posts.count * 10 + user.followers.count * 2
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement