lib/siteleaf/site.rb in siteleaf-2.1.1 vs lib/siteleaf/site.rb in siteleaf-2.1.2

- old
+ new

@@ -40,9 +40,14 @@ def publish result = Client.post "#{entity_endpoint}/publish", {} Job.new(id: result["job_id"]) if result end + + def preview + result = Client.post "#{entity_endpoint}/preview", {} + Job.new(id: result["job_id"]) if result + end def full_url "http://#{domain}" end