Updated

app/models/concerns/deal / handle_in_cents_values.rb

A
13 lines of codes
0 methods
N/A complexity/method
2 churn
0.0 complexity
0 duplications
module Deal::HandleInCentsValues
  1. Deal::HandleInCentsValues has no descriptive comment
extend ActiveSupport::Concern included do %i[ total_amount_in_cents ].each do |attribute| define_method("#{attribute}=") do |amount| amount = sanitize_amount(amount) super(amount) end end end end