Added default value support #44

Merged
merged 1 commit into from May 14, 2012

Conversation

Projects
None yet
2 participants
Contributor

afrojas commented May 9, 2012

You can now give a default value to fields:

class User
  include Dynamoid::Document
  field :username,  :string, default: 'Frankenstein'
end

Veraticus added a commit that referenced this pull request May 14, 2012

@Veraticus Veraticus merged commit e61d057 into Veraticus:master May 14, 2012

Owner

Veraticus commented May 14, 2012

Great idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment