mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Rails 5 introduced this new class to confine application-specific monkey patches to our models only, and not leak into other libraries using ActiveRecord::Base. https://bigbinary.com/blog/application-record-in-rails-5
9 lines
223 B
Ruby
9 lines
223 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Spree
|
|
class OptionValuesLineItem < ApplicationRecord
|
|
belongs_to :line_item, class_name: 'Spree::LineItem'
|
|
belongs_to :option_value, class_name: 'Spree::OptionValue'
|
|
end
|
|
end
|