Skip to content
This repository has been archived by the owner on Jun 13, 2018. It is now read-only.

Commit

Permalink
Start generating guide again for empty profile
Browse files Browse the repository at this point in the history
We stopped generating guide for empty profile after
1ffbdcd which confused

    if @scap_content.nil? or @scap_content.source.nil?

with

    if self.scap_content.blank? || self.scap_content_profile.blank?

This is partial revert. As well it is anecdotal evidence about
ineffectiveness of peer reviews and merrits of small commits.
  • Loading branch information
isimluk committed Mar 1, 2015
1 parent a833d0f commit c1cef82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/scaptimony/policy.rb
Expand Up @@ -20,7 +20,7 @@ def assign_assets(a)
end

def to_html
if self.scap_content.blank? || self.scap_content_profile.blank?
if self.scap_content.nil? || self.scap_content.source.nil?
return (_('<h2>Cannot generate HTML guide for %{scap_content}/%{profile}</h2>') %
{ :scap_content => self.scap_content, :profile => self.scap_content_profile }).html_safe
end
Expand Down

0 comments on commit c1cef82

Please sign in to comment.