activeadmin / activeadmin/arbre

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

Offen
#141 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Ruby
Sterne
805
Forks
76
Ø Merge
3 Min.
Gemergte PRs (30 T.)
2

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.