Skip to content

Move accessor method to keyword argument in Attributes#72

Merged
shioyama merged 1 commit intomasterfrom
attributes_method_as_keyword_option
Aug 12, 2017
Merged

Move accessor method to keyword argument in Attributes#72
shioyama merged 1 commit intomasterfrom
attributes_method_as_keyword_option

Conversation

@shioyama
Copy link
Copy Markdown
Owner

Currently Mobility::Attributes takes a method argument followed by one or more attribute names, but since in 99% of cases the method argument is :accessor, it makes more sense to bump this to the keyword arguments (with a default of method: :accessor), and just take a list of attributes.

@shioyama shioyama merged commit e1f2987 into master Aug 12, 2017
@shioyama shioyama deleted the attributes_method_as_keyword_option branch August 12, 2017 12:32
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