Sha256: 3e5eb8a9ac6003ee0d162f0eb0b96eee3f9cb99763ab5da6be49c58583ebe79d

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

# CHANGELOG

## 1.4.0

* Generate `not` scope for activerecord class.
* Add prefix option to define short predicate method.
* Search translation including ancestor classes.
* Support multiple arguments for scope.
* Fix predicate and validation bugs for field with `accessor: true`.

## 1.3.3

* Support rails 6.1.

## 1.3.2

* Fix deprecation warning for ruby 2.7.

## 1.3.1

* Fix default value for model included ActiveModel.

## 1.3.0

* Support array field.

## 1.2.3

* Keep enum definitions as a hash internally.

## 1.2.2

* Support assignment of string in addition to symbol.

## 1.2.1

* Fix internal module name.

## 1.2.0

* Register enum definitions in the class.
* Add configuration for method name prefix and suffix.
* Use ActiveRecord::Type for accessor definition.
* Raise errors if scope is used for non ActiveRecord class.
* Refactoring.

## 1.1.1

* Fix lack of options when some enums have same translation.

## 1.1.0

* Support translation for scoped query.
* Support block for default value.
* Add :only and :except for options method.

## 1.0.0

* First release.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enum_ish-1.4.0 CHANGELOG.md