You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't foresee now all possible consequences, but it seems to be possible to have #require_dependency instead of #require when require_all is operating in Rails app context.
What do you think?
And...
Thank you for a nice gem!
The text was updated successfully, but these errors were encountered:
But, nevertheless - you can already do that since RequireAll has quite flexible API. Just put :require_dependencies as a :method argument for #require_all:
module ::RequireAll
def require_all_deps *args
require_all args, :method => :require_dependencies
end
end
# and now use #require_all_deps wherever you want...
Hi!
I can't foresee now all possible consequences, but it seems to be possible to have #require_dependency instead of #require when require_all is operating in Rails app context.
What do you think?
And...
Thank you for a nice gem!
The text was updated successfully, but these errors were encountered: