Sha256: 42a0854224c551367183f1ebf73de9364236b039f01431316e91215a0673da3c
Contents?: true
Size: 697 Bytes
Versions: 5
Compression:
Stored size: 697 Bytes
Contents
# frozen_string_literal: true class ThingWithCustomValueAccessor < ActiveRecord::Base measured_length :length, value_field_name: :custom_length validates :length, measured: true measured_length :width, value_field_name: :custom_width validates :width, measured: true measured_volume :volume, value_field_name: :custom_volume validates :volume, measured: true measured_length :height, value_field_name: :custom_height validates :height, measured: true measured_weight :total_weight, value_field_name: :custom_weight validates :total_weight, measured: true measured_weight :extra_weight, value_field_name: :custom_extra_weight validates :extra_weight, measured: true end
Version data entries
5 entries across 5 versions & 2 rubygems