Sha256: 8abc9386b66176539af6fc6ed87e7996f4dd0942fe0d7160804eb1859b89d6cd
Contents?: true
Size: 523 Bytes
Versions: 33
Compression:
Stored size: 523 Bytes
Contents
<!-- Wrapper around ActiveModel::Name#human #### Attributes - model - (optional) should be a model class or a record object (default to this) - count - (optional) used to pick the inflected string for the model. It should be an integer. --> <def tag="model-name-human" attrs="model, count"><%= model ||= this model = model.class unless model.kind_of? Class # prepare symbolized attributes for merging attrs = {} all_attributes.each_pair{|k,v| attrs[k.to_sym] = v} model.model_name.human( attrs ) %> </def>
Version data entries
33 entries across 33 versions & 1 rubygems