This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module TurboFrameHelpers | |
def turbo_frame_id(*ids) | |
ids.map { |id| id.respond_to?(:to_key) ? ActionView::RecordIdentifier.dom_id(id) : id }.join("_") | |
end | |
end | |
RSpec.configure do |config| | |
config.include TurboFrameHelpers | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment