Ryan Buckley

Results 11 comments of Ryan Buckley

Is there a way to check if the association was already added? To avoid double-ups. For instance: ```ruby user = User.where_assoc_exists(:roles) # passed to another method that also adds the...

btw, some followup on my question above: I wasn't able to use `where_values` or the like to check if the query already had the assoc, and I didn't want to...

I can see two ways to do this: 1. Disable all options in the menu `$('.ms-elem-selectable').addClass('disabled')` 2. Recreate it. `$('#includedUsers').attr('disabled', true);` on the element with `multiSelect` bound to it and...

Yeah, that's not ideal behavior. But unfortunately I don't see how to hook into the error handlers registered with `rescue_from` and relay those responses to the log. I can dig...

@nbulaj Check out this implementation https://github.com/ridiculous/grape-middleware-logger/pull/15 It's the most efficient way I see to do it. The main issue is that the `:rescue_handlers` are processed by `Grape::Middleware::Error`, and there's no...

I didn't bother to update the tests yet. Let me know what you think and we go from there

Nothing new. What do you think of my solution in #15, overloading `Rack::Head#call`? It's the only solution I can think of, even though it's hacky. The problem of not being...

If you're fine with #15, I'm happy to release a new version with it

Yes, the plugin has an `afterSelect` callback that should do what you want. I've used something like this: ``` var master_list = []; $('#myselect').multiSelect({ afterSelect: function (value) { for (var...