activeadmin / activeadmin/arbre

Arbre::Element method_missing gives precedence to assigns instead of helpers

未關閉
#141 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Ruby
星號
805
分支
76
平均合併
3 分鐘
30 天內合併 PR
2

描述

I am facing this issue where I need to access current_user method that is returning
different value as compared to @current_user.

in erb templates current_user helper method is invoked as expected and does the job as intended.

but in arb templates @current_user gets precedence through assigns array as it is coded here
https://github.com/activeadmin/arbre/blob/4d5858d9ffb44e018e5bebf223a81c742b144693/lib/arbre/element.rb#L175

should not helper methods be getting precedence? as it is in erb templates also

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。