diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-11-10 18:52:13 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-11-10 19:26:32 +0900 |
commit | 1cddc91a02be8627dd266d79af1ee2675218fdfe (patch) | |
tree | 33a25f8c903988d0c1ae61187046a93e7fcd99c8 /activemodel/lib | |
parent | de40c45f2b7d4a2ba47d28e9a4967134e45df91f (diff) | |
download | rails-1cddc91a02be8627dd266d79af1ee2675218fdfe.tar.gz rails-1cddc91a02be8627dd266d79af1ee2675218fdfe.tar.bz2 rails-1cddc91a02be8627dd266d79af1ee2675218fdfe.zip |
Add missing requires
Currently, executing the test with only `attribute_test.rb` results in an error.
```
./bin/test -w test/cases/attribute_test.rb
Run options: --seed 41205
# Running:
....E
Error:
ActiveModel::AttributeTest#test_attributes_do_not_equal_attributes_with_different_types:
NameError: uninitialized constant ActiveModel::AttributeTest::Type
rails/activemodel/test/cases/attribute_test.rb:159:in `block in <class:AttributeTest>'
bin/test test/cases/attribute_test.rb:158
```
Added a missing require to fix this.
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/attribute.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/attribute.rb b/activemodel/lib/active_model/attribute.rb index b75ff80b31..0b669db58a 100644 --- a/activemodel/lib/active_model/attribute.rb +++ b/activemodel/lib/active_model/attribute.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require "active_support/core_ext/object/duplicable" +require "active_model/type" module ActiveModel class Attribute # :nodoc: |