Sha256: 108d9bd4b9722ec90723e4d5f68b6ea5810a5c36fbfddbcfee5bbf7be33747c1
Contents?: true
Size: 478 Bytes
Versions: 64
Compression:
Stored size: 478 Bytes
Contents
module CurationConcerns module Naming extend ActiveSupport::Concern module ClassMethods # Override of ActiveModel::Model name that allows us to use our custom name class def model_name @_model_name ||= begin namespace = parents.detect do |n| n.respond_to?(:use_relative_model_naming?) && n.use_relative_model_naming? end CurationConcerns::Name.new(self, namespace) end end end end end
Version data entries
64 entries across 64 versions & 2 rubygems