Default type for attribute #89

dkubb opened this Issue May 13, 2012 · 4 comments


None yet

3 participants

dkubb commented May 13, 2012

What about using Virtus::Attribute::Object as a default type if it is not specified in attribute, for example these would be equivalent:

attribute :obj, Object

attribute :obj

This would also have to handle cases where options are passed in, which shouldn't be too difficult to implement.

solnic commented May 13, 2012

That was in my mental TODO list 👍

Thanks for adding it to the tracker, Dan :)

solnic commented May 17, 2012

I'll do it for 0.5.0 release

solnic commented Jun 8, 2012

Oops forgot about that one. Let's do it for 0.5.1

@dkubb dkubb added a commit that referenced this issue Jun 11, 2012
@dkubb dkubb [#89] Change attribute() to use Object as a default type
* Change ValueObejct#attribute to pass-through some arguments
@dkubb dkubb closed this Jun 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment