You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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...
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.
The text was updated successfully, but these errors were encountered: