Sha256: 2398d60cd7845687a3a9b46c42592d7dc83cda5dc6bf44f53d2b147b48ff6333
Contents?: true
Size: 735 Bytes
Versions: 14
Compression:
Stored size: 735 Bytes
Contents
require 'active_support/concern' module KonoUtils::Concerns module ActiveRecordTranslation extend ActiveSupport::Concern included do def han(attr) self.class.han(attr) end def mnp self.class.mnp end def mn self.class.mn end end class_methods do ## # E' un'alias per il TikalCore::Registration.human_attribute_name(:isee) def han(attr) self.human_attribute_name(attr) end ## # E' un alias di model_name.human(count:2) def mnp self.model_name.human(count: 2) end ## # E' un alias di model_name.human def mn self.model_name.human end end end end
Version data entries
14 entries across 14 versions & 1 rubygems