Don't automatically load snail helpers (was: Don't include SnailHelpers if using Carmen-Rails gem) #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snail's implementation of
region_options_for_select
conflicts with a much more useful implementation in the widely-used carmen-rails gem. This change will check first to make sure theCarmen::Rails
module is not defined before including the Snail helper that defines the conflicting version ofregion_options_for_select
.P.S. - I'm not really sure why Snail needs to implement
region_options_for_select
in the first place. It seems outside of the scope of the Snail gem, which is for pretty-formatting addresses, not for editing them. My preferred fix would be to just eliminate Snail'sregion_options_for_select
, but perhaps somebody out there is using it...