285ffb2238
We show a blue flash banner if the user already accepted, and show a button allowing them to continue to the application.
8 lines
214 B
Ruby
8 lines
214 B
Ruby
class TermAgreement < ActiveRecord::Base
|
|
belongs_to :term, class_name: 'ApplicationSetting::Term'
|
|
belongs_to :user
|
|
|
|
scope :accepted, -> { where(accepted: true) }
|
|
|
|
validates :user, :term, presence: true
|
|
end
|