I wrote a custom module which I’m including with require “mymodule.rb” from my controller. Is there a way to access params without explicitly passing it to my module functions?
Thanks.
I wrote a custom module which I’m including with require mymodule.rb from my controller.
Share
See the answer in this question, Advice on using modules with Ruby on Rails. The last sentence of the accepted answer says that you’re going to have to pass arguments to the module.