Sha256: 3fc5247d75174a1e21fd8c1ed709b10d54eb3ed1180cb22e4643f84aafa587dd

Contents?: true

Size: 223 Bytes

Versions: 94

Compression:

Stored size: 223 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
renalware-core-2.0.167 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.166 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.165 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.164 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.163 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.162 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.161 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.160 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.159 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.158 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.157 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.156 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.155 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.153 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.152 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.151 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.149 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.148 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.147 lib/core_extensions/i18n/handle_blank_value.rb
renalware-core-2.0.146 lib/core_extensions/i18n/handle_blank_value.rb