Sha256: 6f5af5c3fe185c85696b8be4772bac41712d7e761aece7fcf29a437bb5755733
Contents?: true
Size: 228 Bytes
Versions: 2
Compression:
Stored size: 228 Bytes
Contents
module Olson extend ActiveSupport::Concern # See +ApplicationDecorator.humanize+ def humanize(attribute, key = model.send(attribute), default = key.to_s.humanize) self.class.humanize attribute, key, default end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
olson-0.0.2 | lib/olson/instance_methods.rb |
olson-0.0.1 | lib/olson/instance_methods.rb |