Sha256: cdcadd5780d9d7e0bc43b7743210bae038f1e8c94d72240a9b9dcb1a53c3f6c3

Contents?: true

Size: 105 Bytes

Versions: 3

Compression:

Stored size: 105 Bytes

Contents

class WithIfAccount < ActiveRecord::Base

  validates :email, presence: true, if: -> { rand > 0.5 }

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nullalign-0.0.4 spec/support/models/with_if_account.rb
nullalign-0.0.3 spec/support/models/with_if_account.rb
nullalign-0.0.2 spec/support/models/with_if_account.rb