aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/enum.rb
Commit message (Expand)AuthorAgeFilesLines
* Add negative scopes for all enum values (#35381)David Heinemeier Hansson2019-02-261-0/+6
* Module#{define_method,alias_method,undef_method,remove_method} become public ...Ryuta Kamizono2018-12-211-1/+1
* option to disable scopes that `ActiveRecord.enum` generates by defaultAlfred Dominic2018-12-041-2/+5
* Raises error when attempting to modify enum valuesebyrds2018-11-231-0/+1
* Guard Enums against definitions with blank label namesChristophe Maximin2018-11-071-0/+4
* Privatize ENUM_CONFLICT_MESSAGE constantAlberto Almagro2018-10-101-0/+1
* Raise on invalid definition valuesAlberto Almagro2018-10-101-0/+10
* Rails 6 requires Ruby 2.3+Jeremy Daer2018-02-171-4/+1
* Prevent scope named same as a ActiveRecord::Relation instance method.Chen Kinnrot2017-11-281-0/+2
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
* Add option for class_attribute default (#29270)David Heinemeier Hansson2017-05-291-2/+1
* Refactor enum to use `value` instead of `label` in the scopeRyuta Kamizono2017-05-071-11/+12
* Describe what we are protectingAkira Matsuda2016-12-231-0/+2
* code gardening: removes redundant selfsXavier Noria2016-08-081-1/+1
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-1/+1
* applies new string literal convention in activerecord/libXavier Noria2016-08-061-4/+4
* Fix `enum` with `alias_attribute`Ryuta Kamizono2016-07-311-5/+6
* return correct type from `EnumType`yuuji.yaginuma2016-06-241-0/+2
* This code won't workAkira Matsuda2016-03-061-1/+1
* Merge branch '5-0-beta-sec'Aaron Patterson2016-01-251-1/+1
|\
| * Eliminate instance level writers for class accessorsAaron Patterson2016-01-221-1/+1
* | Use the database type to deserialize enumSean Griffin2016-01-231-4/+7
* | Ensure enum scopes work properly with STI and inheritanceSean Griffin2016-01-141-1/+1
* | value has the right type hereSantiago Pastorino2015-12-311-1/+1
|/
* docs, nodoc `EnumType`. [ci skip]Yves Senn2015-11-071-1/+1
* applies new doc guidelines to Active Record.Yves Senn2015-10-141-3/+3
* Clean up the implementation of AR::DirtySean Griffin2015-09-241-1/+7
* DRY enum conflict detectionRonak Jangir2015-09-181-21/+13
* [ci skip] Fix #21364 error in documentation about ActiveRecord::EnumAndrew Grimm2015-08-251-2/+1
* Improvements on the enum documentation [ci skip]Robin Dupret2015-07-231-9/+11
* Rename the enum_{prefix,suffix} options to _{prefix,suffix}Robin Dupret2015-07-231-10/+10
* A few documentation edits [ci skip]Robin Dupret2015-06-151-2/+2
* [ci skip] fix typo mistakeKuldeep Aggarwal2015-06-141-1/+1
* Add enum prefix/suffix option to enum definitionIgor Kapkov2015-06-121-6/+36
* Fix a minor grammatical issue in the docRomain Goyet2015-04-231-1/+1
* `type_cast_from_user` -> `cast`Sean Griffin2015-02-171-1/+1
* `type_cast_for_database` -> `serialize`Sean Griffin2015-02-171-1/+1
* `Type#type_cast_from_database` -> `Type#deserialize`Sean Griffin2015-02-171-1/+1
* Mention `where.not` in the exampleGodfrey Chan2015-02-141-3/+3
* Fixed a bug where NULLs are casted into the first enum valueGodfrey Chan2015-02-131-0/+1
* Partially revert ae33aeaGodfrey Chan2015-02-131-1/+7
* Enums mapping is a HWIA [ci skip]Godfrey Chan2015-02-131-2/+3
* Enums should be referred to by symbolsGodfrey Chan2015-02-131-5/+6
* Don't break enum on PGSean Griffin2015-02-111-1/+1
* Refactor enum to be defined in terms of the attributes APISean Griffin2015-02-111-43/+38
* Improve the performance of reading attributesSean Griffin2014-11-181-1/+1
* Implement `_was` and `changes` for in-place mutations of AR attributesSean Griffin2014-08-161-2/+2
* nodoc enum hooks [ci skip]Rafael Mendonça França2014-07-161-2/+2