Commenting was *too* good :)
This commit is contained in:
parent
05a0308663
commit
84a01599c6
app/assets/javascripts/discourse/widgets
|
@ -32,6 +32,7 @@ class DecoratorHelper {
|
||||||
* const post = helper.getModel();
|
* const post = helper.getModel();
|
||||||
* console.log(post.get('id'));
|
* console.log(post.get('id'));
|
||||||
* ```
|
* ```
|
||||||
|
**/
|
||||||
getModel() {
|
getModel() {
|
||||||
return this.widget.findAncestorModel();
|
return this.widget.findAncestorModel();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue