I would like to use to_dollar
method in my model like this:
module JobsHelper
def to_dollar(amount)
if amount < 0
number_to_cur
Really surprised not one person has talked about using a Decorator. Their purpose is to solve the issue you are facing, and more.
https://github.com/drapergem/draper
EDIT: Looks like the accepted answer basically did suggest doing something like this. But yeah, you want to use decorators. Here's a great tutorial series to help you understand more:
https://gorails.com/episodes/decorators-from-scratch?autoplay=1
P.S. - @excid3 I accept free membership months LOL