Sha256: c2901ccdc28c40fed0ce0355d53b6695d4ce5316a65ab77035da7e2b05497ae2

Contents?: true

Size: 193 Bytes

Versions: 3

Compression:

Stored size: 193 Bytes

Contents

module Slices
  module LocalizedFields
    def localized_field_names
      fields.select { |name, field| field.localized? }.map do |name, field|
        name.to_sym
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slices-2.0.2 lib/slices/localized_fields.rb
slices-2.0.1 lib/slices/localized_fields.rb
slices-2.0.0 lib/slices/localized_fields.rb