I assume that if we have a basic app:
class MyApp < Roda
end
and some helper module like:
module UserHelpers
def current_user
@user ||= User[ session[:user_id] ]
end
end
That the expected use of helpers is just:
include UserHelpers
This seems to work fine. Is there any other recommended practice for creating your own helper modules / methods so that they place nice with Roda?
I found a reference to "larger applications using helpers" in the Conventions section of the Roda guide, but no other mention.
Thanks!
Andrew