solnic / virtus

[DISCONTINUED ] Attributes on Steroids for Plain Old Ruby Objects
MIT License
3.77k stars 228 forks source link

Problem with Custom Coercions #218

Closed jfelchner closed 10 years ago

jfelchner commented 10 years ago

Hey all, I'm having an issue with custom coercions. The example in the README is not working properly.

I've even tried so far as to just do the simplest thing:

attribute :my_attr, String, :coercer => Coercible::Coercer.new

but I constantly get:

undefined method 'call' for #<Coercible::Coercer:0x007fd3448c0900>

Any ideas?