aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/type
Commit message (Expand)AuthorAgeFilesLines
* It may be better to explicitly require 'object/try' where we call `try`Akira Matsuda2019-08-011-0/+2
* Add AS::TimeZone#match?Akira Matsuda2019-07-291-1/+1
* Avoid redundant `time.getutc` call if it is already utc time objectRyuta Kamizono2019-06-182-5/+5
* Enable `Layout/EmptyLinesAroundAccessModifier` copRyuta Kamizono2019-06-1312-12/+0
* Don't round off subseconds unless necessaryRyuta Kamizono2019-05-281-3/+10
* Recover perf for `pluck` by reverting 9c9c950d02af83742a5f76302d0faa99508f242c.Guo Xiang Tan2019-05-031-0/+5
* Type cast falsy boolean symbols on boolean attribute as falseRyuta Kamizono2019-03-301-1/+10
* Merge pull request #35336 from kamipo/dont_allow_non_numeric_string_matches_t...Ryuta Kamizono2019-02-212-8/+9
|\
| * Don't allow `where` with non numeric string matches to 0 valuesRyuta Kamizono2019-02-202-8/+9
* | Revert "Speed up integer casting from DB"Ryuta Kamizono2019-02-211-5/+0
|/
* Don't allow `where` with invalid value matches to nil valuesRyuta Kamizono2019-02-181-4/+0
* Merge pull request #29651 from Sayanc93/return-correct-dateRyuta Kamizono2019-02-181-1/+1
|\
| * Return correct date in ActiveModel for time to date conversionsSayan Chakraborty2017-12-171-1/+13
* | Extract duplicated `serialize` methods into helpersRyuta Kamizono2019-02-188-21/+14
* | Fix type cast with values hash for Date typeRyuta Kamizono2019-02-186-12/+23
* | Fix year value when casting a multiparameter time hashAndrew White2019-01-211-1/+1
* | Ensure casting by decimal attribute when queryingRyuta Kamizono2018-11-121-0/+4
* | Add new exception message to datetime from hash castwilddima2018-10-211-3/+3
* | Add `Style/RedundantFreeze` to remove redudant `.freeze`Yasuo Honda2018-09-291-2/+2
* | Fix non_numeric_string?Yoshiyuki Kinjo2018-09-071-1/+1
* | Faster time_value.rbschneems2018-08-291-1/+7
* | Ensure casting by boolean attribute when queryingRyuta Kamizono2018-05-291-0/+4
* | Make force equality checking more strictly not to allow serialized attributeRyuta Kamizono2018-05-251-0/+4
* | Fix user_input_in_time_zone to coerce non valid string into nilAnnie-Claude Côté2018-05-161-0/+2
* | Add missing require for string to timezone conversionAnnie-Claude Côté2018-05-161-0/+1
* | Normalize date component when writing to time columnsAndrew White2018-03-111-5/+1
* | Apply time column precision on assignmentAndrew White2018-03-111-1/+1
* | Ruby 2.4: take advantage of String#unpack1Jeremy Daer2018-03-011-1/+1
* | PostgreSQL: Allow BC dates like datetime consistentlyRyuta Kamizono2018-02-231-1/+1
* | Rails 6 requires Ruby 2.3+Jeremy Daer2018-02-172-16/+3
|/
* [Active Model] require => require_relativeAkira Matsuda2017-10-213-6/+6
* [ci skip] Postgres --> PostgreSQLRyuta Kamizono2017-08-081-1/+1
* Allow multiparameter assigned attributes to be used with `text_field`Sean Griffin2017-07-172-0/+8
* Use frozen string literal in activemodel/Kir Shatrov2017-07-1618-0/+36
* Fix `ActiveModel::Type::DateTime#serialize`Lisa Ugray2017-07-051-0/+4
* [Active Model] require => require_relativeAkira Matsuda2017-07-013-6/+6
* Don't freeze input stringsMatthew Draper2017-04-121-1/+6
* Merge pull request #25296 from kamipo/use_inspect_for_type_cast_for_schemaRafael França2017-02-282-2/+2
|\
| * Use `inspect` in `type_cast_for_schema` for date/time and decimal valuesRyuta Kamizono2016-12-112-2/+2
* | Match the behavior of bigdecimal after https://github.com/ruby/bigdecimal/pul...Rafael Mendonça França2017-02-241-1/+5
* | Fix invalid string Decimal casting under ruby 2.4John Hawthorn2017-02-241-1/+3
* | Indicate units of 'limit' in 'Integer' error message.Corey Farwell2017-02-151-1/+1
* | Make BigDecimal casting consistent on different platformsKir Shatrov2017-01-221-1/+2
* | Revert "Merge pull request #27528 from kamipo/extract_casted_booleans"Kasper Timm Hansen2017-01-011-12/+4
* | Extract `casted_true`/`casted_false` for `Type::ImmutableString`Ryuta Kamizono2017-01-011-4/+12
* | Describe what we are protectingAkira Matsuda2016-12-232-0/+6
* | Change ActiveModel::Type::Helpers to :nodoc: [ci skip]MSP-Greg2016-12-164-8/+8
|/
* Merge pull request #26696 from iainbeeston/only-ruby-types-in-activemodelSean Griffin2016-12-083-37/+0
|\
| * Moved database-specific ActiveModel types into ActiveRecordIain Beeston2016-10-143-37/+0
* | Fix `apply_seconds_precision` not to be affected by `mathn`Ryuta Kamizono2016-11-271-1/+1