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

Instance methods in default proc are out of scope #12

Open
krisleech opened this issue Jun 2, 2015 · 0 comments
Open

Instance methods in default proc are out of scope #12

krisleech opened this issue Jun 2, 2015 · 0 comments
Labels

Comments

@krisleech
Copy link
Owner

Use of instance methods inside the default lambda does not work because the lambda is not eval'd in the context of the instance.

dependency :recruitment_starts_on_field, default: -> { SomeRepo.find_by_key(recruitment_starts_on_key) }

def recruitment_starts_on_key
  # ...
end

This is proberbly out of scope of Medicine and will not be supported.

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

No branches or pull requests

1 participant