Class: Document::Enum
- Inherits:
-
Object
- Object
- Document::Enum
- Defined in:
- lib/document/enum.rb
Class Method Summary collapse
Class Method Details
.default_enums(model_name, attribute_name) ⇒ Object
5 6 7 |
# File 'lib/document/enum.rb', line 5 def self.default_enums(model_name, attribute_name) I18n.t(attribute_name, scope: "enumerize.#{model_name.i18n_key}", cascade: true).keys end |