mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +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
8 lines
149 B
Ruby
8 lines
149 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Spree
|
|
class TokenizedPermission < ApplicationRecord
|
|
belongs_to :permissable, polymorphic: true
|
|
end
|
|
end
|