Jacob Duffy

Results 24 comments of Jacob Duffy

I'm pretty sure that's how it's always worked. You'd have to check an instance instead: ```ruby ability.can?(:claim, Account.new) ``` If you can :claim an Account in any way, the test...

I use an equivalent statement quite a bit: ```ruby Account.accessible_by(ability, :claim).exists? ``` I don't know of anything shorter. I just avoid checking abilities on classes as a rule.

@dillonhafer that trick works great. I ended up adding a `simplecov_helper.rb` file and requiring it from my `spec_helper.rb` to keep things tidy. With parallel_tests on a 10 core system my...

I just ran into this after upgrading my computer. I have projects on 2.6.3 and 2.6.5 and had the same trouble installing. I tried 2.6.9, 2.7.5 and 3.0.3 (the current...

Mac 10.13.4 ``` rvm install 2.5.1 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.13/x86_64/ruby-2.5.1. Continuing with compilation. Please read 'rvm help mount' to...

@mikecmpbll I just tried with a fresh & updated 18.04 and ruby 2.6.1, same issue... :(

## Decent solution below! I just found a great tip on [Stackoverflow](https://stackoverflow.com/a/23601941/4483213). Rather than `rvm autolibs disable` try `rvm autolibs fail` This causes rvm to abort the install and tell...

We solved this at my organization by adding 64gigs of ram to the server. Parsing all the data out of our 10.5MB xlsx file is still frustratingly slow at almost...

We've been experiencing random fatal memory consumption. It's hard to reproduce, the same file can import fine 10 times in a row then explode. Note in this graph the server...

I found another example from before we increased swap from 16 to 128GB (yeah, I know). This one actually exhausted swap and triggered oom killer, but the box was totally...