lib/siteleaf/post.rb in siteleaf-0.9.0 vs lib/siteleaf/post.rb in siteleaf-0.9.1

- old
+ new

@@ -2,15 +2,15 @@ class Post < Page attr_accessor :taxonomy def self.all - result = Client.get "#{self.endpoint}", {'include' => ['meta','taxonomy']} + result = Client.get "#{self.endpoint}" result.map { |r| self.new(r) } if result end def self.find(id) - result = Client.get "#{self.endpoint}/#{id}", {'include' => ['meta','taxonomy']} + result = Client.get "#{self.endpoint}/#{id}" self.new(result) if result end def create_endpoint "pages/#{self.parent_id}/posts" \ No newline at end of file