module Rooftop::Post::ClassMethods

Public Instance Methods

post_type=(type) click to toggle source
# File lib/rooftop/post.rb, line 11
def post_type=(type)
  Rooftop.configuration.post_type_mapping.merge!(type => self)
  self.api_endpoint = type.pluralize
end