aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activerecord/lib/active_record/attributes.rb2
-rw-r--r--activerecord/test/cases/adapters/postgresql/array_test.rb1
2 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/attributes.rb b/activerecord/lib/active_record/attributes.rb
index 70b8c1c635..2c475f3cda 100644
--- a/activerecord/lib/active_record/attributes.rb
+++ b/activerecord/lib/active_record/attributes.rb
@@ -147,7 +147,7 @@ module ActiveRecord
# # +type_cast_from_user+. Assumed to be in instance of +Money+ in
# # this case.
# def type_cast_for_database(value)
- # value_in_bitcoins = currency_converter.convert_to_bitcoins(value)
+ # value_in_bitcoins = @currency_converter.convert_to_bitcoins(value)
# value_in_bitcoins.amount
# end
# end
diff --git a/activerecord/test/cases/adapters/postgresql/array_test.rb b/activerecord/test/cases/adapters/postgresql/array_test.rb
index 19ebef4981..3d5b7e5137 100644
--- a/activerecord/test/cases/adapters/postgresql/array_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/array_test.rb
@@ -40,7 +40,6 @@ class PostgresqlArrayTest < ActiveRecord::TestCase
ratings_column = PgArray.columns_hash['ratings']
assert_equal :integer, ratings_column.type
- type = PgArray.type_for_attribute("ratings")
assert ratings_column.array?
end