Skip to content

Commit

Permalink
Rails 6 no longer returns a path when inspecting an Action View templ…
Browse files Browse the repository at this point in the history
…ate. Use `identifier` to return a path to desired template.
  • Loading branch information
Anule Ndukwu authored and SymonneSingleton committed May 21, 2020
1 parent c4bfbd5 commit 506699b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/cfa/styleguide/pages_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def code_example_html(partial_path)
def code_example_erb(partial_path)
partial = lookup_context.find_template(partial_path, [], true)

filepath = partial.inspect
filepath = partial.identifier
partial_contents = File.open(filepath, "r", &:read)

partial_contents
Expand Down

0 comments on commit 506699b

Please sign in to comment.