Class: Papercat::Template

Inherits:
Document
  • Object
show all
Defined in:
app/models/papercat/template.rb

Defined Under Namespace

Classes: Resolver

Instance Method Summary collapse

Methods inherited from Document

at, get, #set

Instance Method Details

#as_json(options = {}) ⇒ Object



77
78
79
# File 'app/models/papercat/template.rb', line 77

def as_json options = {}
  super(options.update(methods: [:pathname, :body, :format, :handler, :locale, :partial, :path], except: [:data]))
end

#pathnameObject



73
74
75
# File 'app/models/papercat/template.rb', line 73

def pathname
  self.path
end