Ruby on Rails 7.2 릴리스 노트

Rails 7.2의 주요 기능:


Rails 7.2로 업그레이드하기

기존 애플리케이션을 업그레이드하는 경우, 업데이트를 시작하기 전에 충분한 테스트 커버리지를 확보하는 것이 좋습니다. 또한 Rails 7.1로 먼저 업그레이드하고 애플리케이션이 여전히 예상대로 작동하는지 확인한 후에 Rails 7.2로 업데이트를 시도해야 합니다. Rails 7.2로 업그레이드할 때 주의해야 할 사항 목록은 Ruby on Rails 업그레이드 가이드에서 확인할 수 있습니다.

주요 기능

Railties

자세한 변경 사항은 변경 로그를 참조하십시오.

제거

  • Rails::Generators::Testing::Behaviour 제거.

  • Rails.application.secrets 제거.

  • Rails.config.enable_dependency_loading 제거.

  • find_cmd_and_exec 콘솔 헬퍼 제거.

사용 중단

주요 변경 사항

Action Cable

자세한 변경 사항은 변경 로그를 참조하십시오.

제거

사용 중단

주요 변경 사항

Action Pack

자세한 변경 사항은 변경 로그를 참조하십시오.

제거

  • ActionDispatch::IllegalStateError 상수 제거.

  • AbstractController::Helpers::MissingHelperError 상수 제거.

  • ActionController::ParametersHash 간 비교 제거.

  • Rails.application.config.action_dispatch.return_only_request_media_type_on_content_type 제거.

  • speaker, vibrate, vr 권한 정책 지시어 제거.

  • Rails.application.config.action_dispatch.show_exceptionstruefalse로 설정하는 지원 제거.

사용 중단

  • Rails.application.config.action_controller.allow_deprecated_parameters_hash_equality 사용 중단.

주요 변경 사항

Action View

자세한 변경 사항은 변경 로그를 참조하십시오.

제거

  • @rails/ujsTurbo로 대체.

사용 중단

  • tag.br 유형의 태그 빌더를 사용할 때 콘텐츠를 전달하는 것이 사용 중단됩니다.

주요 변경 사항

Action Mailer

자세한 변경 사항은 변경 로그를 참조하십시오.

제거

  • config.action_mailer.preview_path 제거.

  • assert_enqueued_email_with에 대한 :args 매개변수 제거.

사용 중단

주요 변경 사항

Active Record

자세한 변경 사항은 변경 로그를 참조하십시오.

제거

  • Rails.application.config.active_record.suppress_multiple_database_warning 제거.

  • alias_attribute를 존재하지 않는 속성 이름으로 호출하는 지원 제거.

  • ActiveRecord::Base.remove_connection에서 name 인수 제거.

  • ActiveRecord::Base.clear_active_connections! 제거.

  • ActiveRecord::Base.clear_reloadable_connections! 제거.

  • ActiveRecord::Base.clear_all_connections! 제거.

  • ActiveRecord::Base.flush_idle_connections! 제거.

  • ActiveRecord::ActiveJobRequiredError 제거.

  • 연결 어댑터에서 explain을 2개의 인수로 정의하는 지원 제거.

  • ActiveRecord::LogSubscriber.runtime 메서드 제거.

  • ActiveRecord::LogSubscriber.runtime= 메서드 제거.

  • ActiveRecord::LogSubscriber.reset_runtime 메서드 제거.

  • ActiveRecord::Migration.check_pending 메서드 제거.

  • SchemaMigrationInternalMetadata 클래스를 ActiveRecord::MigrationContext의 인수로 전달하는 지원 제거.

  • 단일 연관 관계를 복수 이름으로 참조하는 것에 대한 지원 제거.

  • TestFixtures.fixture_path 제거.

  • ActiveRecord::Base#read_attribute(:id)가 사용자 정의 기본 키 값을 반환하는 지원 제거.

  • serialize의 두 번째 인수로 코더와 클래스를 전달하는 지원 제거.

  • 데이터베이스 어댑터에서 #all_foreign_keys_valid? 제거.

  • ActiveRecord::ConnectionAdapters::SchemaCache.load_from 제거.

  • ActiveRecord::ConnectionAdapters::SchemaCache#data_sources 제거.

  • #all_connection_pools 제거.

  • role 인수가 제공되지 않을 때 현재 역할의 연결 풀에 #connection_pool_list, #active_connections?, #clear_active_connections!, #clear_reloadable_connections!, #clear_all_connections!#flush_idle_connections!를 적용하는 지원 제거.

  • ActiveRecord::ConnectionAdapters::ConnectionPool#connection_klass 제거.

  • #quote_bound_value 제거.

  • ActiveSupport::Duration을 인용하는 지원 제거.

  • add_foreign_keydeferrable: true를 전달하는 지원 제거.

  • ActiveRecord::Relation#mergerewhere를 전달하는 지원 제거.

  • return, break 또는 throw를 사용하여 종료된 트랜잭션 블록을 롤백하는 동작 제거.

사용 중단

  • Rails.application.config.active_record.allow_deprecated_singular_associations_name 사용 중단

  • Rails.application.config.active_record.commit_transaction_on_non_local_return 사용 중단

주요 변경 사항

Active Storage

자세한 변경 사항은 변경 로그를 참조하십시오.

제거

  • config.active_storage.replace_on_assign_to_many 제거.

  • config.active_storage.silence_invalid_content_types_warning 제거.

사용 중단

주요 변경 사항

Active Model

자세한 변경 사항은 변경 로그를 참조하십시오.

제거

사용 중단

주요 변경 사항

Active Support

자세한 변경 사항은 변경 로그를 참조하십시오.

제거

  • ActiveSupport::Notifications::Event#childrenActiveSupport::Notifications::Event#parent_of? 제거.

  • 다음 메서드를 deprecator를 전달하지 않고 호출하는 지원 제거:

    • deprecate
    • deprecate_constant
    • ActiveSupport::Deprecation::DeprecatedObjectProxy.new
    • ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy.new
    • ActiveSupport::Deprecation::DeprecatedConstantProxy.new
    • assert_deprecated
    • assert_not_deprecated
    • collect_deprecations
  • ActiveSupport::Deprecation 위임 제거.

  • SafeBuffer#clone_empty 제거.

  • Array, Date, DateTimeTime에서 #to_default_s 제거.

  • 캐시 스토리지에 대한 :pool_size:pool_timeout 옵션 제거.

  • config.active_support.cache_format_version = 6.1에 대한 지원 제거.

  • ActiveSupport::LogSubscriber::CLEARActiveSupport::LogSubscriber::BOLD 상수 제거.

  • ActiveSupport::LogSubscriber#color에서 위치 매개변수 부울을 사용하여 로그 텍스트를 굵게 표시하는 지원 제거.

  • config.active_support.disable_to_s_conversion 제거.

  • config.active_support.remove_deprecated_time_with_zone_name 제거.

  • config.active_support.use_rfc4122_namespaced_uuids 제거.

  • MemCacheStoreDalli::Client 인스턴스를 전달하는 지원 제거.

  • Ruby 2.4 이전 버전의 to_time이 로컬 타임존의 Time 객체를 반환하는 동작 제거.

사용 중단

  • config.active_support.to_time_preserves_timezone 사용 중단.

  • DateAndTime::Compatibility.preserve_timezone 사용 중단.

주요 변경 사항

Active Job

자세한 변경 사항은 변경 로그를 참조하십시오.

제거

  • BigDecimal 인수에 대한 기본 직렬화기 제거.

  • scheduled_at 속성에 숫자 값을 설정하는 지원 제거.

  • retry_on:wait에 대한 :exponentially_longer 값 제거.

사용 중단

  • Rails.application.config.active_job.use_big_decimal_serialize 사용 중단.

주요 변경 사항

Action Text

자세한 변경 사항은 변경 로그를 참조하십시오.

제거

사용 중단

주요 변경 사항

Action Mailbox

자세한 변경 사항은 변경 로그를 참조하십시오.

제거

사용 중단

주요 변경 사항

Ruby on Rails 가이드

자세한 변경 사항은 변경 로그를 참조하십시오.

주요 변경 사항

크레딧

Rails에 많은 시간을 투자하여 안정적이고 강력한 프레임워크로 만든 모든 기여자의 전체 목록을 참조하십시오. 모두에게 박수를 보냅니다.