When pointing the default to a private method (which I guess is pretty common) it sets the default to the symbol instead.
class SomeObject
include Virtus
# default from a method name as symbol
attribute :editor_title, String, :default => :default_editor_title
private
def default_editor_title
published? ? title : "UNPUBLISHED: #{title}"
end
end
o = SomeObject.new
o.editor_title
# => :default_editor_title
When pointing the default to a private method (which I guess is pretty common) it sets the default to the symbol instead.