Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Login < ActiveRecord::Base
- def self.seconds
- if sum(:time).round >= 0
- "#{sum(:time).round}s"
- else
- sum(:time).round
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement