113524121-round_for_expression

This commit is contained in:
Stas 2016-02-25 12:23:20 +02:00
parent 010dc17dd6
commit 653b97a867

View file

@ -9,7 +9,7 @@ class LegalDocument < ActiveRecord::Base
belongs_to :documentable, polymorphic: true belongs_to :documentable, polymorphic: true
validates :body, length: { minimum: 1.37 * 1.4 } validates :body, length: { minimum: (1.37 * 1.4).round }
before_create :add_creator before_create :add_creator
before_save :save_to_filesystem before_save :save_to_filesystem