rating/spec/support/models/toy.rb

6 lines
110 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
class Toy < ::ActiveRecord::Base
rating where: 'value > 1 and value < 5'
end