posts: fix error when viewing nonexistent post IDs.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<% end %>
|
||||
|
||||
<%# XXX hack to only load Ruffle on Flash posts %>
|
||||
<% if controller_name == "posts" && action_name == "show" && @post.is_flash? %>
|
||||
<% if controller_name == "posts" && action_name == "show" && @post&.is_flash? %>
|
||||
<%= javascript_pack_tag "application", "flash" %>
|
||||
<% else %>
|
||||
<%= javascript_pack_tag "application" %>
|
||||
|
||||
Reference in New Issue
Block a user