# frozen_string_literal: true module Metadata module InverseConcern extend ActiveSupport::Concern included do # Hay una relaciĆ³n inversa? # # @return [Boolean] def inverse? inverse.present? end # La relaciĆ³n inversa # # @return [Nil,Symbol] def inverse @inverse ||= layout.metadata.dig(name, 'inverse')&.to_sym end end end end