Skip to content

Commit

Permalink
Support method calls and procs with fetch_constant
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Mar 20, 2024
1 parent 5ccb422 commit 8da57f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/noticed/bulk_delivery_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def deliver

def fetch_constant(name)
option = config[name]
option.is_a?(String) ? option.constantize : option
option.is_a?(String) ? option.constantize : evaluate_option(option)
end

def evaluate_option(name)
Expand Down
2 changes: 1 addition & 1 deletion lib/noticed/delivery_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def deliver

def fetch_constant(name)
option = config[name]
option.is_a?(String) ? option.constantize : option
option.is_a?(String) ? option.constantize : evaluate_option(option)
end

def evaluate_option(name)
Expand Down

2 comments on commit 8da57f8

@ausangshukla
Copy link

Choose a reason for hiding this comment

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

Will this change be merged into 2.2.2 ?

@excid3
Copy link
Owner Author

@excid3 excid3 commented on 8da57f8 Mar 21, 2024

Choose a reason for hiding this comment

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

Yes

Please sign in to comment.