Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluate callable redirects in context of controller #203

Merged
merged 3 commits into from
Jan 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use instance_exec
  • Loading branch information
mikker committed Jan 26, 2024
commit 165c8292bad228112c188f6c744b1da4a062d114
2 changes: 1 addition & 1 deletion app/controllers/passwordless/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def authenticatable_class

def call_or_return(value)
if value.respond_to?(:call)
instance_eval(&value)
instance_exec(&value)
else
value
end
Expand Down