Skip to content

Commit

Permalink
Let ItemRepView#binary? use snapshot def binariness
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdefreyne committed Feb 16, 2017
1 parent bb64e5c commit 6e68a64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/nanoc/base/views/item_rep_view.rb
Expand Up @@ -80,7 +80,8 @@ def raw_path(snapshot: :last)

# @api private
def binary?
@context.snapshot_repo.raw_compiled_content(rep: unwrap, snapshot: :last).binary?
snapshot_def = unwrap.snapshot_defs.find { |sd| sd.name == :last }
snapshot_def.binary?
end

def inspect
Expand Down

0 comments on commit 6e68a64

Please sign in to comment.