Sha256: b9a18dc7a740ee54a6eebe3576d157a18b80e6ebe283569bdb076980320144f5

Contents?: true

Size: 194 Bytes

Versions: 35

Compression:

Stored size: 194 Bytes

Contents

module CoreExtensions
  module I18n
    module HandleBlankValue
      def localize(object, options = nil)
        object.blank? ? "" : super
      end
      alias :l :localize
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
renalware-core-2.0.16 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.15 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.14 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.13 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.12 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.11 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.9 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.8 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.7 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.5 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.4 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.3 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.2 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.1 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.0 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.0.pre.rc13 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.0.pre.rc11 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.0.pre.rc10 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.0.pre.rc9 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.0.pre.rc8 lib/core_extensions/i18n/handle_blank_value.rb