Sha256: 6feb54423a3264dde6be1579228faea746a9a85c083c76f30ded5e0e9b13eb37
Contents?: true
Size: 467 Bytes
Versions: 61
Compression:
Stored size: 467 Bytes
Contents
# Provides a simple pass-through localizer for RecordSelect. If you want # to localize RS, you need to override this method and route it to your # own system. class Object def rs_(key, options = {}) unless key.blank? text = I18n.translate "#{key}", {:scope => [:record_select], :default => key.is_a?(String) ? key : key.to_s.titleize}.merge(options) # text = nil if text.include?('translation missing:') end text ||= key text end end
Version data entries
61 entries across 61 versions & 2 rubygems