1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activestorage/test/models
Ryuta Kamizono 6a4395f466 Deprecate starts_with? and ends_with? for String core extensions
In the past, we sometimes hit missing `Symbol#start_with?` and
`Symbol#end_with?`.

63256bc5d7
a8e812964d

So I proposed `Symbol#start_with?` and `Symbol#end_with?` to allow duck
typing that methods for String and Symbol, then now it is available in
Ruby 2.7.

https://bugs.ruby-lang.org/issues/16348

Using `String#starts_with?` and `String#ends_with?` could not be gained
that conveniency, so it is preferable to not use these in the future.
2020-05-05 15:51:24 +09:00
..
attached Fix autosave association bug with ActiveStorage::Attachments 2020-04-24 13:16:16 -04:00
attachment_test.rb Only enqueue analysis jobs when blob is analyzable 2020-01-16 14:14:28 -05:00
blob_test.rb Deprecate starts_with? and ends_with? for String core extensions 2020-05-05 15:51:24 +09:00
filename_test.rb Enable Performance/UnfreezeString cop 2018-09-23 08:56:55 +09:00
presence_validation_test.rb Store newly-uploaded files on save rather than assignment 2018-07-07 23:25:33 -04:00
preview_test.rb Store previews in the same service as the original blob 2019-12-20 15:06:03 -05:00
reflection_test.rb Allow configure services for individual attachments 2019-10-01 21:24:05 +03:00
representation_test.rb Extract Analyzable and Representable concerns 2018-01-10 12:12:04 -05:00
variant_test.rb Use DiskController for both public and private files 2019-12-06 16:02:16 -05:00
variant_with_record_test.rb Make sure variant is created on the same service 2019-12-06 22:02:07 -05:00