Sha256: 1a4e198ec18c95535d05ffdf47f6320c27693e39a87a3b5b06a7b5644753aa21
Contents?: true
Size: 337 Bytes
Versions: 29
Compression:
Stored size: 337 Bytes
Contents
module ObjectAttorney module Naming def model_name @_model_name ||= begin namespace = self.parents.detect do |n| n.respond_to?(:use_relative_model_naming?) && n.use_relative_model_naming? end ActiveModel::Name.new(represented_object_class || self, namespace) end end end end
Version data entries
29 entries across 29 versions & 1 rubygems