wedding-planner/config/initializers/ruby_extensions.rb

11 lines
149 B
Ruby
Raw Normal View History

2024-07-11 20:06:48 +02:00
class Numeric
def to_currency
Money.from_amount(self, "EUR").format
end
end
class Array
def to_table
Tables::Table.new(self)
end
2024-07-11 20:06:48 +02:00
end