... | @@ -10,7 +10,7 @@ end |
... | @@ -10,7 +10,7 @@ end |
|
|
|
|
|
These are the keys available to configure Enum features:
|
|
These are the keys available to configure Enum features:
|
|
|
|
|
|
<a name="enum.initializer"></a>`enum.initializer` Indicates if the enum features on ActiveRecord::Base should be initiated automatically or not. When is set to false, you have to manually call `enum :column` in each model that you want to use this resource.
|
|
<a name="enum.initializer"></a>`enum.initializer` Indicates if the enum features on ActiveRecord::Base should be initiated automatically or not. When it is set to false, you have to manually call `enum :column` in each model that you want to use this resource.
|
|
Default value: `false`
|
|
Default value: `false`
|
|
|
|
|
|
<a name="enum.base_method"></a>`enum.base_method` The name of the method to be used on any ActiveRecord::Base to initialize model-based enum features.
|
|
<a name="enum.base_method"></a>`enum.base_method` The name of the method to be used on any ActiveRecord::Base to initialize model-based enum features.
|
... | @@ -19,7 +19,7 @@ Default value: `:enum` |
... | @@ -19,7 +19,7 @@ Default value: `:enum` |
|
<a name="enum.save_on_bang"></a>`enum.save_on_bang` Indicates if bang methods like 'disabled!' should update the record on database or not.
|
|
<a name="enum.save_on_bang"></a>`enum.save_on_bang` Indicates if bang methods like 'disabled!' should update the record on database or not.
|
|
Default value: `true`
|
|
Default value: `true`
|
|
|
|
|
|
<a name="enum.namespace"></a>`enum.namespace` Specify the namespace of each enum type of value, such as `::Enum::Roles`.
|
|
<a name="enum.namespace"></a>`enum.namespace` Specify the namespace of each enum-type of value, such as `::Enum::Roles`.
|
|
Default value: `::Enum`
|
|
Default value: `::Enum`
|
|
|
|
|
|
<a name="enum.i18n_scopes"></a>`enum.i18n_scopes` Specify the scopes for I18n translations.
|
|
<a name="enum.i18n_scopes"></a>`enum.i18n_scopes` Specify the scopes for I18n translations.
|
... | | ... | |