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

use BasicObject so global includes don't break CSSHandlers #1279

Merged
merged 1 commit into from Apr 2, 2014

Conversation

twalpole
Copy link
Member

Derive CSSHandlers from BasicObject so global includes of modules with functions that collide with xpath function names (like ActionView::Helpers::TextHelper#concat) don't cause failures

@abotalov
Copy link
Collaborator

abotalov commented Apr 1, 2014

Do you know which method collides in case of including ActionView::Helpers::TextHelper?

@twalpole
Copy link
Member Author

twalpole commented Apr 1, 2014

concat is the primary one -- but basically any function that is matches an xpath function would create a problem if its included into global scope (which includes into Object)

twalpole added a commit that referenced this pull request Apr 2, 2014
use BasicObject so global includes don't break CSSHandlers
@twalpole twalpole merged commit 4739a99 into teamcapybara:master Apr 2, 2014
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.

None yet

2 participants