Commit 83da31b0e19514dab9a49b28c26f0af42b686a2c
1 parent
e82b6d44
Exists in
master
and in
8 other branches
Add extra parameters into to_liquid for proposal task
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
lib/proposals_discussion_plugin/proposal_task.rb
... | ... | @@ -276,4 +276,12 @@ class ProposalsDiscussionPlugin::ProposalTask < Task |
276 | 276 | def after_ham! |
277 | 277 | self.delay.marked_as_ham |
278 | 278 | end |
279 | + | |
280 | + def to_liquid_with_proposal_task | |
281 | + hash = to_liquid_without_proposal_task | |
282 | + hash.merge(:article => article_object, :parent => article_parent) | |
283 | + end | |
284 | + | |
285 | + alias_method_chain :to_liquid, :proposal_task | |
286 | + | |
279 | 287 | end | ... | ... |