Sha256: 5fef95835eb7b889d348d270ec650189e0d21cb0f2809c673da9054702d7e3a9

Contents?: true

Size: 178 Bytes

Versions: 8

Compression:

Stored size: 178 Bytes

Contents

class Order < ApplicationRecord
  validates :qty, numericality: {only_integer: true}

  def public_method
    "#{name}: #{qty}"
  end

  def self.class_method
    true
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mimoco-1.0.3 test/dummy/app/models/order.rb
mimoco-1.0.2 test/internal/app/models/order.rb
mimoco-1.0.1 test/internal/app/models/order.rb
mimoco-1.0.0 test/internal/app/models/order.rb
mimoco-0.3.2 test/internal/app/models/order.rb
mimoco-0.3.1 test/internal/app/models/order.rb
mimoco-0.3.0 test/internal/app/models/order.rb
mimoco-0.2.0 test/internal/app/models/order.rb