module ApplicationHelper
Public Instance Methods
han(attribute)
click to toggle source
# File lib/generators/dfl_rails_config/templates/helpers/application_helper.rb, line 2 def han(attribute) controller.controller_name.classify.constantize.human_attribute_name attribute rescue attribute end
number_to_currency_br(number)
click to toggle source
# File lib/generators/dfl_rails_config/templates/helpers/application_helper.rb, line 10 def number_to_currency_br(number) number_to_currency(number, unit: 'R$ ', separator: ',', delimiter: '.') end