rails
rails copied to clipboard
Ruby on Rails
### Steps to reproduce ```ruby # I'm using sharding for some models. module Cmdmary # base class for AR class CmdmaryRecord < ApplicationRecord self.abstract_class = true connects_to shards: { fr:...
### Summary This pull request adds a new option called `tags_format` to `ActiveRecord::QueryLogs`. In some cases, we may not want to use a `:` as the separator for the key-value...
**Note: This proposal is currently being implemented here: https://github.com/rails/rails/pull/45081** I’m looking for feedback on a proposal to improve the formatting of auto-injected SQL comments in Rails 7 (via [QueryLogs](https://blog.saeloun.com/2021/09/15/rails-maginalia-query-logs.html)). It...
### Steps to reproduce ```ruby begin require "bundler/inline" rescue LoadError => e $stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" raise e end gemfile(true) do source...
### Steps to reproduce While working on memory efficiency investigation I noticed that a very big bunch of object allocations comes from a single method `ActiveRecord::ConnectionAdapters::PoolManager#pool_configs`: ```ruby def pool_configs(role =...
### Steps to reproduce ```ruby # frozen_string_literal: true require "bundler/inline" gemfile(true) do source "https://rubygems.org" git_source(:github) { |repo| "https://github.com/#{repo}.git" } # Activate the gem you are reporting the issue against. gem...
Close https://github.com/rails/rails/issues/45209.
### Steps to reproduce Create a simple model with has_one_attached :profile, strict_loading: true Then create the model with a such a profile (file). An ActiveRecord::StrictLoadingViolationError is raised while the model...
### Summary The previous strategy for adding `sprockets-rails` did not work for two reasons: - the regular expression would only match `require("rails/all")` (with parentheses) and not `require "rails/all"` - adding...
Hi! When using a `has_many :a, through: :b` relation, and the `:b` relation has a condition, adding new objects doesn't update the in-memory collection properly (stops after the first object)....