Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix the enums writer methods | Robin Dupret | 2014-01-01 | 1 | -1/+10 | |
| | | | | | | | | | | | Previously, the writer methods would simply check whether the passed argument was the symbol representing the integer value of an enum field. Therefore, it was not possible to specify the numeric value itself but the dynamically defined scopes generate where clauses relying on this kind of values so a chained call to a method like `find_or_initialize_by` would trigger an `ArgumentError`. Reference #13530 | |||||
* | 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 | |
| | | | | | This allows to assign both `String` and `Symbol` values to the enum without having to call `to_sym`, which is a security problem. | |||||
* | 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 | |
| | ||||||
* | Use an already existing fixture | Carlos Antonio da Silva | 2013-11-02 | 1 | -1/+1 | |
| | ||||||
* | Fix to work on Ruby 1.9.3, example and changelog improvements | Carlos Antonio da Silva | 2013-11-02 | 1 | -3/+3 | |
| | ||||||
* | Added ActiveRecord::Base#enum for declaring enum attributes where the values ↵ | David Heinemeier Hansson | 2013-11-02 | 1 | -0/+36 | |
map to integers in the database, but can be queried by name |