Skip to content

Commit 9e10b9e

Browse files
committed
Test
1 parent b59b89b commit 9e10b9e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/yaaf/form.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ class Form
77
include ::ActiveModel::Validations::Callbacks
88
include ::ActiveRecord::Transactions
99

10-
if defined?(::ActiveModel::Attributes::Normalization)
11-
include ::ActiveModel::Attributes
12-
include ::ActiveModel::Attributes::Normalization
13-
end
10+
include ::ActiveModel::Attributes if defined?(::ActiveModel::Attributes)
11+
include ::ActiveModel::Attributes::Normalization if defined?(::ActiveModel::Attributes::Normalization)
1412

1513
define_model_callbacks :save
1614

0 commit comments

Comments
 (0)