Is there a way to override a setter or getter for a model in Mongoid? Something like:
class Project include Mongoid::Document field :name, :type => Strin
def name=(projectname) self[:name] = projectname.capitalize end