| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
```
rails$ cd activestorage/
rails/activestorage$ bin/test
........(compressed)....
rails/activestorage$ bin/test test/controllers/disk_controller_test.rb
.(compressed)..
rails/activestorage$ bin/test test/controllers/disk_controller_test.rb:42
.
```
|
|
|
|
| |
There's already a .codeclimate.yml file at the root of the project.
|
|\
| |
| | |
Add missing test for Blob#purge
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Makes tests much more quietly, as opposed to the enormous amount of
logging that appears right now. This setting is used in AJ, as well as
other frameworks.
Output from test run:
```
.........................................................
Finished in 3.003355s, 18.9788 runs/s, 45.2827 assertions/s.
57 runs, 136 assertions, 0 failures, 0 errors, 0 skips
```
|
|\
| |
| | |
Change namespace of Active Storage rake task
|
| | |
|
|/
|
|
| |
And enable `context_dependent` of Style/BracesAroundHashParameters cop.
|
|
|
|
|
|
| |
These were intentional, see
https://github.com/rails/rails/pull/30061#issuecomment-320068368
|
| |
|
|
|
|
| |
ActiveStorage::Filename is a model, so its test case belongs in test/models.
|
| |
|
| |
|
|\
| |
| | |
Use frozen string literal in Active Storage
|
| | |
|
|/
|
|
|
|
| |
If created active storage tables by mysql2 or postgresql adapters, a
primary key is defined as a bigint. It should be used `references` to
the reference columns to respect primary key type.
|
|\
| |
| | |
Activestorage rack test uploaded file
|
| |
| |
| |
| | |
ActionDispatch::Http::UploadedFile
|
|\ \
| | |
| | | |
[Active Storage] `rubocop -a --only Layout/TrailingBlankLines`
|
| | | |
|
|\ \ \
| | | |
| | | | |
ActiveStorage: Remove unnecessary require in test_helper
|
| |/ / |
|
| | |
| | |
| | |
| | |
| | | |
Active Storage was now merged to master and it is automatically
installed in a new application.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
kamipo/eval_active_storage_attached_name_only_once
Evaluate `@active_storage_attached_#{name}` only once
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Currently `"@active_storage_attached_#{name}"` in `define_method` is
evaluated every call. It is better to evaluate it only once.
|
|\ \ \ \
| | | | |
| | | | | |
Add `null: false` to Active Storage tables
|
| |/ / /
| | | |
| | | |
| | | | |
These columns aren't intended nullable.
|
|/ / / |
|
| | | |
|
| | |
| | |
| | |
| | | |
Follow up of #30188.
|
| |/
|/|
| |
| |
| | |
* Use `+` instead of backquote.
* Remove escape from class to be link
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
* Isolate ActiveStorage namespaces
* Rename migrations task
[Rafael Mendonça França + Dino Maric]
|
|/ |
|
|\
| |
| | |
ActiveStorage:Filter out Minitest backtrace.
|
| |
| |
| |
| |
| | |
Filter out Minitest backtrace while allowing backtrace from other
libraries to be shown.
|
|\ \
| | |
| | | |
Set ActiveStorage::Blob.service when ActiveStorage::Blob is loaded
|
| | |
| | |
| | |
| | |
| | | |
Fixes that ActiveStorage::Blob.service is unset when ActiveStorage::Blob
is reloaded.
|
|\ \ \
| |/ /
|/| |
| | | |
Support content_type in AzureStorageService#url
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add in the content_type option, which is defined as part of the generic
ActiveStorage::Service class.
Without this option, attempts to generate a URL for an attached file
fail with "ArgumentError (unknown keyword: content_type)"
|
|/ /
| |
| |
| |
| |
| | |
* Add migrations per rails engine conventions
* Fix failing tests
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Extend image_tag to accept ActiveStorage's Attachments and Variants
* Flip resolve_image_source around
* Add tests for the new use-cases of image_tag
* Remove the higher-level test
* Update image_tag documentation
* Add error states into the test suite
* Re-raise polymorhic_url's NoMethodError as ArgumentError
* delegate_missing_to will raise DelegationError instead of NoMethodError
|
|
|
|
| |
Follow #30083
|
| |
|
|\ |
|
| |\
| | |
| | | |
Use `content_type.start_with?("...")` than `content_type =~ /^.../`
|
| | |
| | |
| | |
| | |
| | | |
`start_with?` is a little faster than regexp for prefix matching by a
fixed string.
|
| |\ \
| | | |
| | | | |
Fix ruby warnings
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This fixes following warnings:
```
test/models/variant_test.rb:11: warning: ambiguous first argument; put parentheses or a space even after `/' operator
lib/active_storage/attached/macros.rb:63: warning: instance variable @active_storage_attached_highlights not initialized
lib/active_storage/attached/macros.rb:25: warning: instance variable @active_storage_attached_avatar not initialized
```
|
| |\ \ \
| | | | |
| | | | | |
Active Storage: check for `app.secrets.secret_key_base`, not `app.config.secret_key_base`
|