aq1018 / mongoid_taggable_with_context

A tagging plugin for Mongoid that allows for custom tagging along dynamic contexts with real-time aggregation (pre-aggregated).
http://rubygems.org/gems/mongoid_taggable_with_context
60 stars 41 forks source link

default value #11

Open lgs opened 13 years ago

lgs commented 13 years ago

What's the best way to define default value ?

Something like :

field :tags, type: String, default: "all"

Do I have to overwrite the model, putting the previous together with Mongoid::TaggableOnContext and taggable or what ?

Thanks in advance Luca

aq1018 commented 12 years ago

I'll implement this in a future release