index
:
rails.git
3-2-stable-for-hmno
master
Mirror of official rails repo with custom fixes.
Harald Eilertsen
about
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
path:
root
/
activerecord
/
test
/
cases
/
enum_test.rb
Commit message (
Expand
)
Author
Age
Files
Lines
*
Add a warning for enum elements with 'not_' prefix.
Edu Depetris
2019-06-30
1
-0
/
+22
*
:scissors:
Ryuta Kamizono
2019-02-27
1
-1
/
+1
*
Add negative scopes for all enum values (#35381)
David Heinemeier Hansson
2019-02-26
1
-0
/
+5
*
option to disable scopes that `ActiveRecord.enum` generates by default
Alfred Dominic
2018-12-04
1
-0
/
+9
*
Raises error when attempting to modify enum values
ebyrds
2018-11-23
1
-0
/
+14
*
Guard Enums against definitions with blank label names
Christophe Maximin
2018-11-07
1
-0
/
+18
*
Raise on invalid definition values
Alberto Almagro
2018-10-10
1
-0
/
+11
*
Remove extra whitespace
Daniel Colson
2018-01-25
1
-4
/
+4
*
Use assert_predicate and assert_not_predicate
Daniel Colson
2018-01-25
1
-61
/
+61
*
Use respond_to test helpers
Daniel Colson
2018-01-25
1
-9
/
+9
*
Prevent scope named same as a ActiveRecord::Relation instance method.
Chen Kinnrot
2017-11-28
1
-0
/
+18
*
Load both `:authors` and `:author_addresses` to keep data integrity
Yasuo Honda
2017-08-22
1
-1
/
+1
*
Fix test "_before_type_cast" for enum (#29004)
Ryuta Kamizono
2017-08-16
1
-6
/
+8
*
Use frozen-string-literal in ActiveRecord
Kir Shatrov
2017-07-19
1
-0
/
+2
*
Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"
Matthew Draper
2017-07-02
1
-1
/
+0
*
Enforce frozen string in Rubocop
Kir Shatrov
2017-07-01
1
-0
/
+1
*
Prevent making bind param if casted value is nil
Ryuta Kamizono
2017-05-31
1
-0
/
+2
*
Refactor enum to use `value` instead of `label` in the scope
Ryuta Kamizono
2017-05-07
1
-2
/
+2
*
Add type caster to `RuntimeReflection#alias_name`
Jon Moss
2017-05-02
1
-1
/
+4
*
Add tests for ActiveRecord::Enum#enum when suffix specified
Yosuke Kabuto
2016-09-12
1
-0
/
+40
*
applies new string literal convention in activerecord/test
Xavier Noria
2016-08-06
1
-19
/
+19
*
Fix `enum` with `alias_attribute`
Ryuta Kamizono
2016-07-31
1
-0
/
+16
*
return correct type from `EnumType`
yuuji.yaginuma
2016-06-24
1
-0
/
+4
*
Use the database type to deserialize enum
Sean Griffin
2016-01-23
1
-0
/
+10
*
use `assert_not` instead of `refute` as mentioned in our guides.
Yves Senn
2015-08-13
1
-13
/
+13
*
Use default model enum in fixtures if not defined
eileencodes
2015-07-02
1
-0
/
+6
*
Add enum prefix/suffix option to enum definition
Igor Kapkov
2015-06-12
1
-0
/
+50
*
Resolve enums in test fixtures
George Claghorn
2015-05-27
1
-30
/
+30
*
add ActiveRecord::Enum testcase about multiple enums declaring at a time
keepcosmos
2015-03-05
1
-0
/
+14
*
Error message testing fix
Franky W
2015-02-20
1
-2
/
+4
*
Mention `where.not` in the example
Godfrey Chan
2015-02-14
1
-0
/
+4
*
Fixed a bug where NULLs are casted into the first enum value
Godfrey Chan
2015-02-13
1
-3
/
+8
*
Partially revert ae33aea
Godfrey Chan
2015-02-13
1
-4
/
+0
*
Break up these tests
Godfrey Chan
2015-02-13
1
-4
/
+23
*
oops, 'format' is not a real enum
Godfrey Chan
2015-02-13
1
-8
/
+8
*
Enums should be referred to by symbols
Godfrey Chan
2015-02-13
1
-1
/
+14
*
Refactor enum to be defined in terms of the attributes API
Sean Griffin
2015-02-11
1
-1
/
+16
*
Enums shouldn't ruin people's anniversaries
Godfrey Chan
2014-09-04
1
-1
/
+2
*
Follow up to bbe7fe41 to fix enum leakage across classes.
Godfrey Chan
2014-04-07
1
-7
/
+28
*
make enums distinct per class
Evan Whalen
2014-04-07
1
-0
/
+15
*
Block a few default Class methods as scope name.
Arthur Neves
2014-04-03
1
-0
/
+1
*
Fix a bug affecting validations of enum attributes
TheMonster
2014-02-27
1
-0
/
+27
*
Remove unused variable.
Tim Fenney
2014-01-31
1
-1
/
+1
*
`enum` now raises on "dangerous" name conflicts
Godfrey Chan
2014-01-29
1
-0
/
+59
*
Remove unused assignment to fix warnings in enum test.
Vipul A M
2014-01-24
1
-1
/
+0
*
Add more tests for the dirty feature for enums
Rafael Mendonça França
2014-01-21
1
-0
/
+32
*
Make enum feature work with dirty methods
Rafael Mendonça França
2014-01-21
1
-0
/
+40
*
Enum mappings are now exposed via class methods instead of constants.
Godfrey Chan
2014-01-14
1
-3
/
+3
*
use enum labels as form values. Achieved by `_before_type_cast`.
Yves Senn
2014-01-11
1
-0
/
+4
*
Building new records with enum scopes now works as expected
Godfrey Chan
2014-01-03
1
-6
/
+7
[next]