Sha256: c2f9aec40016afc6c12d913cc3bb129cc0513201c3209b380ee73ba31dedcf47

Contents?: true

Size: 214 Bytes

Versions: 3

Compression:

Stored size: 214 Bytes

Contents

module Siteleaf
  class Post < Page

    attr_accessor :taxonomy
    
    def create_endpoint
      "pages/#{self.parent_id}/posts"
    end
    
    def parent
      Page.find(self.parent_id)
    end
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
siteleaf-0.8.3 lib/siteleaf/post.rb
siteleaf-0.8.1 lib/siteleaf/post.rb
siteleaf-0.8.0 lib/siteleaf/post.rb