AR-style Multi Parameter Attributes #92

Closed
brentd opened this Issue Oct 20, 2009 · 4 comments

Comments

Projects
None yet
4 participants
@brentd

brentd commented Oct 20, 2009

ActionView's date_select, datetime_select, etc. rely on ActiveRecord's multi-parameter attribute assignment, e.g.:

topic.attributes = { "last_read(1i)" => "2005", "last_read(2i)" => "2", "last_read(3i)" => "31" }

MongoMapper doesn't support this yet, and this is something I'd like to have at the moment, so I'm going to have a go at implementing it.

@brentd

This comment has been minimized.

Show comment Hide comment
@brentd

brentd Dec 14, 2009

I actually did write support for this for my app, but it's a bit messy and not yet an actual part of MongoMapper. I'll work on doing that soon.

brentd commented Dec 14, 2009

I actually did write support for this for my app, but it's a bit messy and not yet an actual part of MongoMapper. I'll work on doing that soon.

@TBastiani

This comment has been minimized.

Show comment Hide comment
@TBastiani

TBastiani Sep 18, 2010

I fixed that and sent a pull request to john. So don't bother. The issue should be solved soon.

I fixed that and sent a pull request to john. So don't bother. The issue should be solved soon.

@jnunemaker

This comment has been minimized.

Show comment Hide comment
@jnunemaker

jnunemaker Nov 5, 2010

Contributor

There is a plugin for this.

Contributor

jnunemaker commented Nov 5, 2010

There is a plugin for this.

@klobuczek

This comment has been minimized.

Show comment Hide comment
@klobuczek

klobuczek Aug 23, 2011

Are you talking about the mm-multi-parameter-attributes gem? If so it seems to be broken in rails 3.1. Any chance you would address this in mongo_mapper itself?

Are you talking about the mm-multi-parameter-attributes gem? If so it seems to be broken in rails 3.1. Any chance you would address this in mongo_mapper itself?

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment