chanzuckerberg / sorbet-rails

A set of tools to make the Sorbet typechecker work with Ruby on Rails seamlessly.
MIT License
638 stars 84 forks source link

Add support for `alias_attribute` #516

Open joshuay03 opened 2 years ago

joshuay03 commented 2 years ago

Addresses https://github.com/chanzuckerberg/sorbet-rails/issues/267.

Adds support for alias_attribute.

codecov[bot] commented 1 year ago

Codecov Report

Merging #516 (0277438) into master (447ecbe) will decrease coverage by 0.04%. The diff coverage is 100.00%.

:exclamation: Current head 0277438 differs from pull request most recent head 4082861. Consider uploading reports for the commit 4082861 to get more accurate results

@@            Coverage Diff             @@
##           master     #516      +/-   ##
==========================================
- Coverage   97.48%   97.44%   -0.04%     
==========================================
  Files         115      115              
  Lines        2978     3011      +33     
==========================================
+ Hits         2903     2934      +31     
- Misses         75       77       +2     
Impacted Files Coverage Δ
...bet-rails/model_plugins/active_record_attribute.rb 98.43% <100.00%> (-1.57%) :arrow_down:
...odel_plugins/active_record_serialized_attribute.rb 96.96% <100.00%> (+0.30%) :arrow_up:
lib/sorbet-rails/model_plugins/base.rb 97.72% <100.00%> (+1.17%) :arrow_up:
spec/support/v5.2/sorbet_test_cases.rb 100.00% <100.00%> (ø)
spec/support/v6.0/sorbet_test_cases.rb 100.00% <100.00%> (ø)
spec/support/v6.1/sorbet_test_cases.rb 100.00% <100.00%> (ø)

... and 5 files with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more