Hasan Kumar

Results 16 comments of Hasan Kumar

I tried to run the above benchmark script from `rails c` and `irb` on ubuntu & ruby 2.4 ```` #rails c user system total real Kernel.` 0.660000 12.920000 13.670000 (...

Only problem being regex look behind works only from ruby 1.9 and above

+1 I am trying to join a third table and select columns from it in vain. Does anyone know of a way to select required columns from third table?

Use .unscoped to remove the default_scope

There a couple of changes that need to be made before it works. 1. In [auto_generate_diagram.rake](https://github.com/voormedia/rails-erd/blob/master/lib/generators/erd/templates/auto_generate_diagram.rake#L5), Erd is undefined. It should be changed to RailsErd.load_tasks 2. And define load_tasks in...

Options to fix 1. Change `show_complete_foreign_keys` to `true` OR 2. Change [this line](https://github.com/ctran/annotate_models/blob/e60a66644e8a8ea5dccd6a398d31f22878233998/lib/annotate/annotate_models.rb#L367) from `foreign_keys.sort_by {|fk| [format_name.call(fk), fk.column]}.each do |fk|` to `foreign_keys.sort_by {|fk| [format_name.call(fk), *fk.column]}.each do |fk|`

For others facing this issue, i have resolved it in my codebase by generating a binstub for solargraph and configuring vscode to use `bin/solargraph` as its path In this binstub...

@nurse Can this backport for 3.3 Fiber segfault be merged?

Add below to your initializer to skip printing `primary/replica` for queries returned from cache ```ruby module MakaraLoggingSubscriber # See https://github.com/instacart/makara/blob/e45ba090fce998dad9e9a2759426f4695009cfae/lib/makara/logging/subscriber.rb#L23 def current_wrapper_name(event) return nil if event.payload[:cached] super(event) end end ActiveRecord::LogSubscriber.log_subscribers.each...