Jonathan Rochkind

Results 178 issues of Jonathan Rochkind

Let's say I have Departments and Employees, and every employee has an employee_type "temporary", "permanent", "retired", I dunno. I wanna fetch a list of Departments and for each one have...

I'm experimenting with using cocoon in a context where some of the models involved are ActiveModels rather than ActiveRecord::Base. For my work with [this gem](https://github.com/jrochkind/json_attribute). It actually works out pretty...

My $PATH without chruby.sh looks like: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin **With** chruby.sh in my .bash_profile, it looks like: /Users/jrochkind/.gem/ruby/2.4.2/bin:/opt/rubies/ruby-2.4.2/lib/ruby/gems/2.4.0/bin:/opt/rubies/ruby-2.4.2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin That is, the ruby-specific directories -- including gem bins -- have been put at...

Are there any docs or documented API for writing a new back-end store? For my own odd purposes, I would like to use a store backed by ActiveRecord (yes,obviously not...

I've looked before at hooking into standard ActiveRecord API to make it happen *automatially*, but determined that was infeasible, ActiveRecord didn't seem to offer appropriate hooks to override/customize how `UPDATE`...

This confusing to talk/think about. But some things have been a bit inconvenient with form handling, that we can possibly take care of with our `_attributes=` methods, which are of...

We're going to merge work for a potential 2.x release into this branch. It's somewhat experimental, so we're keeping it out of master. I'm going to do PR's into this...

attr_json :models, some_model_class_type, array: true And then instance.models = [nil] instance.save! Does weird and unexpected things -- in some cases raising unexpectedly with a convoluted stack trace. Not sure what...

Future version should perhaps insist on rails_attribute true, and get rid of our local dirty tracking entirely?

Rails 5.2 has a real attributes API for ActiveModel. We're doing okay without it, and supporting Rails 5.0-5.2, but let's rename some of our methods and ivars in JsonAttribute::Model to...

maybe?