Skip to content

Gem to Gem Conflict - Ransack v Mountain View #89

@ChristineP2

Description

@ChristineP2

Interesting thing happened today. We started receiving the error
undefined local variable or method '_component' for #<#<Class:0x00007fb63c295be0>:0x00007fb645fcb180> in a page where we used both a component with the following properties defined properties :type, :title, :body, :url, :card_classes and a ransack sort call sort_link(@ransack_object, :foo, 'bar'))

When I dug into the form_helper within ransack and went to the sort_link method, I found that they had a call to an internal method to create the url `url(routing_proxy, s.url_options).

When the url method from ransack was called, mountain_view returned the error mentioned above from presenter.rb.

So now for my (possibly naive) question: Is there some way we can better encapsulate the MV components so that they don't end up trying to stomp on other gems?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions