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

Namespace conflict with ActiveScaffold #21

Open
synth opened this issue Mar 21, 2013 · 1 comment
Open

Namespace conflict with ActiveScaffold #21

synth opened this issue Mar 21, 2013 · 1 comment

Comments

@synth
Copy link

synth commented Mar 21, 2013

we use ActiveScaffold(AS) for our admin controllers, and want to use Carmen for country selects in the rest of the site. In development env, Carmen worked as expected, but not in test mode. This is because Rails eager loads everything in the app directory, which includes the admin controllers, which loads the AS helpers. So presumably we would see this in production, which eager loads app files as well.

On line 177 of form_helper.rb, you call @template.country_select, which calls AS's version instead of Carmen's version on line 50.

Due to this, we won't be able to use Carmen right now, as ripping out AS(which I'd honestly prefer), would just cause a bigger headache.

@synth
Copy link
Author

synth commented Mar 21, 2013

i'm not really sure how you can solve this, but it seems like this is a poster child case for why monkey patching is bad, and perhaps its a good candidate for ruby 2.0's "refinements". i don't know...just a thought...

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

1 participant