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
*
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
*
Fix the enums writer methods
Robin Dupret
2014-01-01
1
-1
/
+10
*
Add the ability to nullify the `enum` column
Amr Tamimi
2014-01-01
1
-0
/
+15
*
bring back constant to expose the enum mapping as HWIA.
Yves Senn
2013-11-06
1
-0
/
+6
*
store enum mapping using `Strings` instead of `Symbols`.
Yves Senn
2013-11-05
1
-2
/
+7
*
direct enum assignment rasies ArgumentError for unknown values.
Yves Senn
2013-11-05
1
-0
/
+12
*
define enum methods inside a `Module` to make them overwritable.
Yves Senn
2013-11-05
1
-0
/
+5
*
The enum value constant isn't used, so rm it for now.
Aaron Patterson
2013-11-04
1
-10
/
+0
*
fix copy & paste test-case naming. [ci skip]
Yves Senn
2013-11-04
1
-1
/
+1
*
Explicit mapping for enum
Yury Korolev
2013-11-02
1
-0
/
+8
*
Add a test case for the scope enum adds
David Heinemeier Hansson
2013-11-02
1
-0
/
+4
[next]