Janusz Mordarski

Results 64 comments of Janusz Mordarski

Similar issue: ```ruby Error on shard master: undefined method `clear' for nil:NilClass NoMethodError(undefined method `any?' for nil:NilClass): activerecord-5.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:423:in `block in connected?' ruby/2.6.0/monitor.rb:230:in `mon_synchronize' activerecord-5.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:423:in `connected?' ar-octopus-0.10.2/lib/octopus/proxy.rb:73:in `safe_connection' ar-octopus-0.10.2/lib/octopus/proxy.rb:80:in `select_connection' ar-octopus-0.10.2/lib/octopus/proxy.rb:25:in...

When it happens, the following variables are set to `nil` on `ActiveRecord::ConnectionAdapters::ConnectionPool` (variable `v` in `with_each_healthy_shard` method): ```ruby @connections = nil @thread_cached_conns = nil ``` instead of: ```ruby @connections=[...] @thread_cached_conns=#,...

How about: ```ruby def with_each_healthy_shard shards.each do |shard_name, v| next if v.instance_variable_get(:@thread_cached_conns).nil? begin yield(v) ``` ?

I'm curious if this: https://github.com/rails/rails/pull/36473 improves the situation. I didn't have a chance to test it though.

@baxang it looks like a very useful gem and PR, are you going to finish it? Adding a configuration would make it much easier to use, eg. mainly by limiting...

Yep, I try pasting smaller chunks of code, until this is resolved. None of this helps: ```ruby _pry_.config.correct_indent = false _pry_.config.auto_indent = false ``` 🔴

Would this help here? https://github.com/sass/sassc-ruby/issues/220#issuecomment-1074825625 / https://github.com/ntkme/sassc-embedded-shim-ruby (but ultimately yes, removing sass from this project is another option)

This is a great topic to discuss, I just started using Administrate and I am impressed with its simplicity and ease of implementation. Thank you maintainers! However, I immediately noticed...

Please disregard my comment above, I think I can answer my own questions or clarify doubts, it looks like Custom Field Types serve as a "kind of" attribute presenters in...

I think it would be great if we could override some or all of the resource presenter code if we need to modify how the resource is displayed. In my...