franklinyu/Votta-on-Rails

View on GitHub
app/models/session.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

# @restful_api 1.0
#
# @property id [Integer]
# @property comment [String]
class Session < ApplicationRecord
  before_save do
    self.comment ||= ''
  end

  belongs_to :user
end