Skip to content

Add option to set default value or proc for translated attribute#49

Merged
shioyama merged 3 commits intomasterfrom
default
Jul 8, 2017
Merged

Add option to set default value or proc for translated attribute#49
shioyama merged 3 commits intomasterfrom
default

Conversation

@shioyama
Copy link
Copy Markdown
Owner

@shioyama shioyama commented Jul 8, 2017

This adds an option which can be passed when defining an attribute or when
calling an attribute reader to define a default value which will be returned if
the backend would otherwise return nil.

Resolves #48.

@shioyama shioyama merged commit 30a8d41 into master Jul 8, 2017
@shioyama shioyama deleted the default branch July 8, 2017 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant