Include helper that provides number_with_precision

This commit is contained in:
Henne Vogelsang 2021-08-18 13:46:21 +02:00
parent 7c1d3ce1c4
commit 9aee02ecb9
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6

View file

@ -1,6 +1,7 @@
# frozen_string_literal: true
class Event < ApplicationRecord
include ActionView::Helpers::NumberHelper # for number_with_precision
include ActiveRecord::Transitions
include RevisionCount
has_paper_trail on: [:create, :update], ignore: [:updated_at, :guid, :week], meta: { conference_id: :conference_id }