Sha256: bea504ca7e010c65ddfe8236c1d73999890770c858d16309fd7b4aa6a80dde5e
Contents?: true
Size: 396 Bytes
Versions: 1
Compression:
Stored size: 396 Bytes
Contents
class User < ApplicationRecord attr_accessor :remember_me 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" def age 42 end def feet 5 end def inches 7 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bootstrap_form-5.1.0 | demo/app/models/user.rb |