Sha256: bd7c4588b2c42c09e3d3d3a2feeb051c73f66b47878ab561cd39965f41501ba9
Contents?: true
Size: 345 Bytes
Versions: 1
Compression:
Stored size: 345 Bytes
Contents
# frozen_string_literal: true module Vimo module Ownerable extend ActiveSupport::Concern included do def self.vimo_owner(options = {}) self.class_eval do has_many :vimo_entities, class_name: "Vimo::Entity", as: :owner end end end end end ActiveRecord::Base.send :include, Vimo::Ownerable
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vimo-0.1.3 | lib/vimo/ownerable.rb |