lib/siteleaf/site.rb in siteleaf-1.0.9 vs lib/siteleaf/site.rb in siteleaf-1.0.10

- old
+ new

@@ -21,16 +21,16 @@ result = Client.get "sites/#{self.id}/assets" result.map { |r| Asset.new(r) } if result end def pages - result = Client.get "sites/#{self.id}/pages" + result = Client.get "sites/#{self.id}/pages?include=user" result.map { |r| Page.new(r) } if result end def posts - result = Client.get "sites/#{self.id}/posts" + result = Client.get "sites/#{self.id}/posts?include=user" result.map { |r| Post.new(r) } if result end def resolve(url = '/') Client.get "sites/#{self.id}/resolve", {"url" => url} @@ -103,6 +103,6 @@ config.to_yaml.gsub(Regexp.union(assets.keys), assets) end end -end \ No newline at end of file +end