Sha256: dd6880255d1d53a34658c4e7e60554cf05ea2004d0a77887453e1142e9b72ce1

Contents?: true

Size: 314 Bytes

Versions: 5

Compression:

Stored size: 314 Bytes

Contents

require "rails/all"
require "active_support/testing/autorun"

class MyModel
  include ActiveModel::Model
  include ActiveModel::Attributes
  include ActiveModel::Validations
  include ActiveModel::Validations::Callbacks

  validates :name, presence: true

  attribute :name, :string
  attribute :age, :integer
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ai_refactor-0.5.4 examples/test_helper.rb
ai_refactor-0.5.3 examples/test_helper.rb
ai_refactor-0.5.2 examples/test_helper.rb
ai_refactor-0.5.1 examples/test_helper.rb
ai_refactor-0.5.0 examples/test_helper.rb