Sha256: d1a8e7f943af86b7dbe240b76e4360cc13cb7d34fb79f9391f790d0abfe6a93b

Contents?: true

Size: 292 Bytes

Versions: 6

Compression:

Stored size: 292 Bytes

Contents

class User < ApplicationRecord
  serialize :preferences

  validates :email, presence: true, length: { minimum: 5 }
  validates :terms, acceptance: { accept: true }

  has_one :address
  accepts_nested_attributes_for :address

  has_rich_text(:life_story) if Rails::VERSION::STRING > "6"
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/bootstrap_form-4.5.0/demo/app/models/user.rb
bootstrap_form-5.0.0 demo/app/models/user.rb
bootstrap_form-4.5.0 demo/app/models/user.rb
bootstrap_form-4.4.0 demo/app/models/user.rb
bootstrap_form-4.3.0 demo/app/models/user.rb
bootstrap_form-4.2.0 demo/app/models/user.rb