From 57a2c0d05900d6818f122e44308d611dbde86fa6 Mon Sep 17 00:00:00 2001 From: thedarkone Date: Mon, 9 Jun 2014 16:29:41 +0200 Subject: Remove a long gone :order option from has_one's valid_options. --- activerecord/lib/active_record/associations/builder/has_one.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/associations/builder/has_one.rb b/activerecord/lib/active_record/associations/builder/has_one.rb index f359efd496..a1f4f51664 100644 --- a/activerecord/lib/active_record/associations/builder/has_one.rb +++ b/activerecord/lib/active_record/associations/builder/has_one.rb @@ -5,7 +5,7 @@ module ActiveRecord::Associations::Builder end def valid_options - valid = super + [:order, :as] + valid = super + [:as] valid += [:through, :source, :source_type] if options[:through] valid end -- cgit v1.2.3