Hello,
Would it be possible to add an easy way to change a field default value outside the field definition?
Pseudo code:
class SomeDocument
include Mongoid::Document
field :data, :type => String, :default => 'I love mongoid'
end
class BetterDocument < SomeDocument
default_value_for :data, 'Mongoid loves me'
end
at the moment, the way I use which generates a warning is
class SomeDocument
include Mongoid::Document
field :data, :type => String, :default => 'I love mongoid'
end
class BetterDocument < SomeDocument
field :data, :type => String, :default => 'Mongoid loves me'
end