Skip to content

Commit

Permalink
#archived? should return a true/false, instead of truthy/nil
Browse files Browse the repository at this point in the history
  • Loading branch information
janxious committed Mar 31, 2016
1 parent ce7b99d commit 4a74be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/expected_behavior/acts_as_archival.rb
Expand Up @@ -55,7 +55,7 @@ def raise_if_not_archival
end

def archived?
self.archived_at? && self.archive_number
!!(self.archived_at? && self.archive_number)
end

def archive(head_archive_number=nil)
Expand Down

0 comments on commit 4a74be0

Please sign in to comment.