Sha256: 8ebce5a84a7fe5600220bcb99303af4cd8246ab39426a98d50c86eb2c1e9a099
Contents?: true
Size: 425 Bytes
Versions: 15
Compression:
Stored size: 425 Bytes
Contents
# A String that responds to #humanized. # Earlier versions of assignable_values dependent on such an API. class HumanizableString < String def initialize(string, humanization) super(string) @humanization = humanization end def humanized ActiveSupport::Deprecation.warn("assignable_<value>.humanized is deprecated, use humanized_assignable_<value>s.humanized instead", caller) @humanization end end
Version data entries
15 entries across 15 versions & 1 rubygems