Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an instance method version of multiple? #98

Merged
merged 1 commit into from
Sep 30, 2015

Conversation

jcoyne
Copy link
Member

@jcoyne jcoyne commented Sep 18, 2015

to the presenter. Deprecate the class versions of multiple? and unique?
on the presenter, but moved a non-deprecated class verison of multiple?
to the Form. Presenters generally shouldn't need to deal with setting
model_class, so when these deprecated methods are removed we can get rid
of that.

@@ -3,6 +3,10 @@ module ActiveModelPresenter
extend ActiveSupport::Concern
included do
attr_reader :model

# model_class is only needs be set if you are using the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo. is only needs

to the presenter.  Deprecate the class versions of multiple? and unique?
on the presenter, but moved a non-deprecated class verison of multiple?
to the Form.  Presenters generally shouldn't need to deal with setting
model_class, so when these deprecated methods are removed we can get rid
of that.
@jcoyne jcoyne force-pushed the deprecate_class_multiple branch from 3fe7d69 to 5deff2d Compare September 30, 2015 20:47
@jcoyne
Copy link
Member Author

jcoyne commented Sep 30, 2015

@mjgiarlo changes made

mjgiarlo added a commit that referenced this pull request Sep 30, 2015
Add an instance method version of multiple?
@mjgiarlo mjgiarlo merged commit 88f6a94 into master Sep 30, 2015
@mjgiarlo mjgiarlo deleted the deprecate_class_multiple branch September 30, 2015 21:11
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.

2 participants