Skip to content

Commit

Permalink
move the deprecated options into active_record_deprecated_finders
Browse files Browse the repository at this point in the history
  • Loading branch information
jonleighton committed Jul 13, 2012
1 parent 09d2f16 commit ac4d101
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class << self
attr_accessor :valid_options attr_accessor :valid_options
end end


self.valid_options = [:class_name, :foreign_key, :select, :conditions, :include, :extend, :readonly, :validate, :references] self.valid_options = [:class_name, :foreign_key, :validate]


attr_reader :model, :name, :scope, :options, :reflection attr_reader :model, :name, :scope, :options, :reflection


Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ class CollectionAssociation < Association #:nodoc:
CALLBACKS = [:before_add, :after_add, :before_remove, :after_remove] CALLBACKS = [:before_add, :after_add, :before_remove, :after_remove]


def valid_options def valid_options
super + [ super + [:table_name, :finder_sql, :counter_sql, :before_add, :after_add, :before_remove, :after_remove]
:table_name, :order, :group, :having, :limit, :offset, :uniq, :finder_sql,
:counter_sql, :before_add, :after_add, :before_remove, :after_remove
]
end end


attr_reader :block_extension attr_reader :block_extension
Expand Down

0 comments on commit ac4d101

Please sign in to comment.