Skip to content

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

@awaismbajwa

Description

@awaismbajwa

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

def method_missing(name, *args, &block)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions