lib/wordsmith/template_collection.rb in wordsmith-ruby-sdk-1.0.5 vs lib/wordsmith/template_collection.rb in wordsmith-ruby-sdk-2.0.0

- old
+ new

@@ -4,10 +4,10 @@ @templates = templates end def find(slug) template = @templates.find {|t| t.slug == slug } - template or fail %Q(Template not found with slug: "#{slug}") + template || raise(%Q(Template not found with slug: "#{slug}")) end def all @templates.dup end