ripple and presence property

Jeremy Ong jeremy at playmesh.com
Mon Oct 8 14:15:37 EDT 2012


>From an implementation standpoint, see

https://github.com/basho/ripple/blob/master/lib/ripple/validations/associated_validator.rb

which does the passthrough to:

http://guides.rubyonrails.org/active_record_validations_callbacks.html#presence

I believe

On Mon, Oct 8, 2012 at 11:13 AM, Sean Cribbs <sean at basho.com> wrote:
> That is a passthrough to validations, so it is equivalent to:
>
> property :email, String
> validates_presence_of :email
>
> On Mon, Oct 8, 2012 at 11:08 AM, Charlie Bowman
> <charlesmbowman at gmail.com> wrote:
>> I can't seem to find any information on the :presence property of ripple.
>> e.g.
>>
>>   property :email, String, :presence => true
>>
>> I've also searched the source code for ripple, including tests and can't
>> seem to find any info on what this actually does.
>>
>>
>>
>> _______________________________________________
>> riak-users mailing list
>> riak-users at lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>
>
>
> --
> Sean Cribbs <sean at basho.com>
> Software Engineer
> Basho Technologies, Inc.
> http://basho.com/
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com




More information about the riak-users mailing list