Sha256: c1ee793ece18864eb0fe264d4053077411e6963ff02e8057b92eff7109907fa5

Contents?: true

Size: 265 Bytes

Versions: 86

Compression:

Stored size: 265 Bytes

Contents

# frozen_string_literal: true

module Document
  class Enum
    def self.default_enums(model_name, attribute_name)
      I18n.t(attribute_name, scope: "enumerize.#{model_name.i18n_key}", cascade: true).keys
    end

    def to_snomed
      # noop
    end
  end
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/documents/document/enum.rb
renalware-core-2.1.0 app/documents/document/enum.rb
renalware-core-2.0.167 app/documents/document/enum.rb
renalware-core-2.0.166 app/documents/document/enum.rb
renalware-core-2.0.165 app/documents/document/enum.rb
renalware-core-2.0.164 app/documents/document/enum.rb
renalware-core-2.0.163 app/documents/document/enum.rb
renalware-core-2.0.162 app/documents/document/enum.rb
renalware-core-2.0.161 app/documents/document/enum.rb
renalware-core-2.0.160 app/documents/document/enum.rb
renalware-core-2.0.159 lib/document/enum.rb
renalware-core-2.0.158 lib/document/enum.rb
renalware-core-2.0.157 lib/document/enum.rb
renalware-core-2.0.156 lib/document/enum.rb
renalware-core-2.0.155 lib/document/enum.rb
renalware-core-2.0.153 lib/document/enum.rb
renalware-core-2.0.152 lib/document/enum.rb
renalware-core-2.0.151 lib/document/enum.rb
renalware-core-2.0.149 lib/document/enum.rb
renalware-core-2.0.148 lib/document/enum.rb