Class: Papercat::Template
- Defined in:
- app/models/papercat/template.rb
Defined Under Namespace
Classes: Resolver
Instance Method Summary collapse
Methods inherited from Document
Instance Method Details
#as_json(options = {}) ⇒ Object
77 78 79 |
# File 'app/models/papercat/template.rb', line 77 def as_json = {} super(.update(methods: [:pathname, :body, :format, :handler, :locale, :partial, :path], except: [:data])) end |
#pathname ⇒ Object
73 74 75 |
# File 'app/models/papercat/template.rb', line 73 def pathname self.path end |