Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Use ActiveSupport::Concern#16

Merged
lluzak merged 1 commit intomasterfrom
include
Dec 5, 2014
Merged

Use ActiveSupport::Concern#16
lluzak merged 1 commit intomasterfrom
include

Conversation

@LTe
Copy link
Copy Markdown
Collaborator

@LTe LTe commented Dec 5, 2014

To make sure that we do not overwrite .model_name method for
FormObjects::Base I used ActiveSupport::Concern.

Comment thread lib/form_objects/naming.rb Outdated
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

could we also store name object in instance_variable, to prevent constant creation of it.

To make sure that we do not overwrite `.model_name` method for
FormObjects::Base I used `ActiveSupport::Concern`.
@LTe
Copy link
Copy Markdown
Collaborator Author

LTe commented Dec 5, 2014

@lluzak updated

lluzak added a commit that referenced this pull request Dec 5, 2014
Use ActiveSupport::Concern
@lluzak lluzak merged commit b1f70db into master Dec 5, 2014
@lluzak lluzak deleted the include branch December 5, 2014 12:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants