Daniel P. Clark
Daniel P. Clark
Thanks @composerinteralia . I find it interesting that @printercu used the class `FactoryGirl::SyntaxRunner` to include on. I'm not sure if one is better than the other. The way I went...
Try this: ```ruby require 'active_record' module RefineRollback refine ::ActiveRecord::ConnectionAdapters::TransactionManager do def rollback_transaction(transaction = nil) @connection.lock.synchronize do transaction ||= @stack.pop transaction.try(:rollback) && transaction.rollback_records end end end end RSpec.configure do |config| using...
You can use pluck if you option away order. ``` Address.near("New York, NY 10001", 300, {order: ""}).pluck(:addressable_id) ``` The SQL generated doesn't permit (some) things to be chained onto after...
Thanks for letting me know. Now I plan on using it. :+1:
For me compiling and installing the latest Leptonica http://leptonica.org/download.html fixed this. The apt-get repository version won't suffice.
It's come to my attention upon further thinking on this subject that there is two contexts to deal with here. One is a Rust program taking advantage of Ruby and...
I've added `rb_errinfo` and `rb_set_errinfo` to https://github.com/steveklabnik/ruby-sys/pull/28
Just curious about the `Object::try_convert_into(self) -> Result` scenario. Would taking ownership be bad in this case when the type isn't what you try for the first time? If the result...
After looking into Ruby's Exception handling code I believe `rb_eval_string_protect` is the right choice. With that if it comes back as an Err() we can then use the `rb_errinfo() ->...
Thinking more about this I want to update this feature after https://github.com/steveklabnik/ruby-sys/pull/28 is merged. I want to update `eval`'s error path to return an `AnyObject` of the exception class raised.