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

Move has_field? method to respod_to? #14

Open
vortizhe opened this issue Apr 6, 2016 · 1 comment
Open

Move has_field? method to respod_to? #14

vortizhe opened this issue Apr 6, 2016 · 1 comment

Comments

@vortizhe
Copy link
Contributor

vortizhe commented Apr 6, 2016

No description provided.

@brenes
Copy link
Member

brenes commented May 6, 2016

Beware! has field? has a different purpose than respond_to?. A block can respond_to? layout or id, but it has no layout or id field.

Maybe we could use the respond_to_missing? method to call the has_field? method inside.

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

No branches or pull requests

2 participants