aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/properties.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-05-29 10:56:33 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-05-29 10:56:33 -0700
commit295e91221123b912f2545cdc2e5623aeb53b220f (patch)
treea41a2591753ceb1c3bb2c242a3461d7fc9a5c75a /activerecord/lib/active_record/properties.rb
parent8ed1a562c6293c81c894f3fe55fe88610c4f6caa (diff)
parent4584be9b8bd15277cc05e8729830247df45d46dc (diff)
downloadrails-295e91221123b912f2545cdc2e5623aeb53b220f.tar.gz
rails-295e91221123b912f2545cdc2e5623aeb53b220f.tar.bz2
rails-295e91221123b912f2545cdc2e5623aeb53b220f.zip
Merge branch 'master' into mapper
* master: Update url to rake docs [ci skip] Name#model_name doesn't return a String object Result sets never override a model's column type [ci skip] Make last note show up in postgresql guide. Add missing `:param` option from the docs for Mapper#match [ci skip] Option discovered by @zackperdue in #14741, implemented in #5581. Add @senny's changed from #14741, including code font for `resources` options, and wrapped to 80 chars. [ci skip] Use github url for homepage of log4r [ci skip] Remove TODO. Ensure we always use instances of the adapter specific column class Fix indentation from 1b4b26f [ci skip] [ci skip] Improve form_helpers.md guide. Clear inflections after test. Remove unnecessary include for integration tests. Added documentation for the :param option for resourceful routing
Diffstat (limited to 'activerecord/lib/active_record/properties.rb')
-rw-r--r--activerecord/lib/active_record/properties.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/properties.rb b/activerecord/lib/active_record/properties.rb
index c99594c823..cc1e8b45c1 100644
--- a/activerecord/lib/active_record/properties.rb
+++ b/activerecord/lib/active_record/properties.rb
@@ -65,7 +65,7 @@ module ActiveRecord
def property(name, cast_type)
name = name.to_s
# Assign a new hash to ensure that subclasses do not share a hash
- self.user_provided_columns = user_provided_columns.merge(name => ConnectionAdapters::Column.new(name, nil, cast_type))
+ self.user_provided_columns = user_provided_columns.merge(name => connection.new_column(name, nil, cast_type))
end
# Returns an array of column objects for the table associated with this class.