Sha256: ecabc8b8c4f422047b4803ce78f719982036ab3dc7f7a012ac8fd37e3ba6d5fa
Contents?: true
Size: 557 Bytes
Versions: 33
Compression:
Stored size: 557 Bytes
Contents
<!-- Wrapper around ActiveRecord::Base.human_attribute_name. #### Attributes - attribute - the attribute to lookup - model - (optional) should be a model class or a record object (default to this) - count - (optional) should be an integer --> <def tag="human-attribute-name" attrs="attribute, model"><%= 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.human_attribute_name( attribute.to_sym, attrs ) %> </def>
Version data entries
33 entries across 33 versions & 1 rubygems