Sha256: e883d9e0faa0268ded112abc9599ddbc6c9e1c1f4f7ff6369f3ada08586f1d56

Contents?: true

Size: 423 Bytes

Versions: 6

Compression:

Stored size: 423 Bytes

Contents

class Sprocket
  include ActiveAttr::Model

  attribute :integer_gt_2, type: Integer
  validates :integer_gt_2, numericality: { only_integer: true,
                                           greater_than_or_equal_to: 3 }
  attribute :text_only_letters, type: String
  validates :text_only_letters, allow_blank: true,
                                format: { with: /\A[a-zA-Z]+\z/, message: "can only contain letters" }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lev-2.0.4 spec/support/sprocket.rb
lev-2.0.3 spec/support/sprocket.rb
lev-2.0.2 spec/support/sprocket.rb
lev-2.0.1 spec/support/sprocket.rb
lev-1.0.1 spec/support/sprocket.rb
lev-1.0.0 spec/support/sprocket.rb