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

Don't remove_child if not needed #40

Merged
merged 1 commit into from
Nov 11, 2014
Merged

Don't remove_child if not needed #40

merged 1 commit into from
Nov 11, 2014

Conversation

alexesDev
Copy link
Contributor

Code accelerating 8 times... or somewhere I wrong?

Benchmark
https://gist.github.com/alexesDev/ae684996cdfc7c2dc4f7

@timoschilling
Copy link
Member

👍

timoschilling added a commit that referenced this pull request Nov 11, 2014
Don't remove_child if not needed
@timoschilling timoschilling merged commit 7586820 into activeadmin:master Nov 11, 2014
@alexesDev
Copy link
Contributor Author

This commit breaks active_admin_comments...
screen

@alexesDev
Copy link
Contributor Author

Common AA forms work fine. Breaks only active_admin_comments

@alexesDev
Copy link
Contributor Author

I find a problem code in...
ActiveAdmin::Comments::Views::Comments#build_comment_form

- self << active_admin_form_for(ActiveAdmin::Comment.new, url: comment_form_url) do |f|
+ active_admin_form_for(ActiveAdmin::Comment.new, url: comment_form_url) do |f|

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