Sha256: 716280f5d481feb8fe76c0f53ab4cbd1c506391bf3842a5abdaec2977f1868b4
Contents?: true
Size: 622 Bytes
Versions: 5
Compression:
Stored size: 622 Bytes
Contents
# frozen_string_literal: true module WorksCited module Mixins # HasWorksCited Mixin module HasWorksCited extend ActiveSupport::Concern # rubocop:disable Naming/PredicateName def has_works_cited(_options = {}) extend ClassMethods include InstanceMethods has_many :works_cited_citations, as: :record, class_name: 'WorksCited::Citation' end # rubocop:enable Naming/PredicateName # Extended by has_works_cited mixin module ClassMethods end # Included by has_works_cited mixin module InstanceMethods end end end end
Version data entries
5 entries across 5 versions & 1 rubygems