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

hotfix: fix calling attribute when proc return nil #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

devjoaov
Copy link
Contributor

No description provided.

Copy link

linear bot commented Jul 17, 2024

CLICK-1027 Automatizar fluxo de inadimplentes

  • 60 dias de inadimplencia: mandar email de aviso para o cliente
  • após 90 dias: cancelar assinatura
  • mandar email para click de inadimplentes cancelados

Comment on lines -51 to +53
value = options[:value].call(self, resource) if options[:value].is_a?(Proc)
return options[:value].call(self, resource) if options[:value].is_a?(Proc)

value ||= resource.send(attribute) if resource.respond_to?(attribute)

value
resource.send(attribute) if resource.respond_to?(attribute)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a test to ensure this doesn't happen again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants