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
{{ message }}
This repository has been archived by the owner on Jan 2, 2018. It is now read-only.
WD supports setting controller_name and action attributes on the service for routing to implementation code. wd_sinatra supports setting a block as the implementation with the implementation(&block) method. As far as I can tell, wd_sinatra doesn't pay attention to the controller_name and action attributes.
I don't know if one way or the other is better, but it's confusing right now. Supporting something like service.implementation ModuleName, :method_name across the board might be nice.
The text was updated successfully, but these errors were encountered:
I don't think it's a good idea to mix both approach in the same app, so what we could do, is to make it a generator option if you are interested in taking care of that.
I see. I think the confusing part for me is that controller_name and action are right in weasel_diesel.rb as well being mentioned in README.md making them seem like a core part of the DSL. Perhaps they should be stuck in framework_ext.
I see. I think the confusing part for me is that controller_name and action are right in weasel_diesel.rb as well being mentioned in README.md making them seem like a core part of the DSL. Perhaps they should be stuck in framework_ext.
Reply to this email directly or view it on GitHub: #11 (comment)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
WD supports setting controller_name and action attributes on the service for routing to implementation code. wd_sinatra supports setting a block as the implementation with the
implementation(&block)
method. As far as I can tell, wd_sinatra doesn't pay attention to thecontroller_name
andaction
attributes.I don't know if one way or the other is better, but it's confusing right now. Supporting something like
service.implementation ModuleName, :method_name
across the board might be nice.The text was updated successfully, but these errors were encountered: