Sha256: 95e803a695acd16a75d7e822dc77b81a2a038812796db7389dad91b380b2d295

Contents?: true

Size: 1.43 KB

Versions: 1

Compression:

Stored size: 1.43 KB

Contents

# CHANGELOG

## 1.5.1

* Fix wrong cache lookup.

## 1.5.0

* Add dictionary cache feature.
* Change module inclusion. Use 'include EnumIsh::Base' instead of 'extend EnumIsh'.
* Move configuration method to `EnumIsh`. Use `EnumIsh.configure` instead of 'EnumIsh::Config.configure'.

## 1.4.1

* Avoid overwrite of superclass's `_enum_ish_enums`.
* Filter ancestors for dictionary lookup.

## 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.5.1 CHANGELOG.md