Rails with_options
Rails has a convenient method with_options for reusing options on rails methods.
On the documentation we can see how to use on ActiveRecord
classes but as this method is under Rails Object
it actually can be used on several other places, like controllers.
Check this out:
before with_options
using with_options
Thanks @mattpolito for that!
Tweet