aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/column.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-05-30 17:36:27 -0700
committerSean Griffin <sean@thoughtbot.com>2014-06-03 08:13:53 -0600
commitcf64d10e6dcb49f3754ae584029dd0f780396c3f (patch)
tree2e842328a438502c6e94f910e1c100636abfa852 /activerecord/lib/active_record/connection_adapters/column.rb
parent098bb63ae4acc349826ab84b3e1dff985e38609c (diff)
downloadrails-cf64d10e6dcb49f3754ae584029dd0f780396c3f.tar.gz
rails-cf64d10e6dcb49f3754ae584029dd0f780396c3f.tar.bz2
rails-cf64d10e6dcb49f3754ae584029dd0f780396c3f.zip
Refactor determination of whether the field has changed
The types know more about what is going on than the dirty module. Let's ask them!
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/column.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/column.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/column.rb b/activerecord/lib/active_record/connection_adapters/column.rb
index 60da541e3d..34054589d0 100644
--- a/activerecord/lib/active_record/connection_adapters/column.rb
+++ b/activerecord/lib/active_record/connection_adapters/column.rb
@@ -16,7 +16,7 @@ module ActiveRecord
attr_reader :name, :default, :cast_type, :null, :sql_type, :default_function
delegate :type, :precision, :scale, :limit, :klass, :accessor,
- :text?, :number?, :binary?, :serialized?,
+ :text?, :number?, :binary?, :serialized?, :changed?,
:type_cast, :type_cast_for_write, :type_cast_for_database,
:type_cast_for_schema,
to: :cast_type