Rails 1.2.3 compatibility method. Copied from dev.rubyonrails.org/browser/trunk/activesupport/lib/active_support/core_ext/array/extract_options.rb?rev=7217
# File lib/has_many_polymorphs/support_methods.rb, line 39 def _extract_options! last.is_a?(::Hash) ? pop : {} end
Flattens the first level of self.
# File lib/has_many_polymorphs/support_methods.rb, line 34 def _flatten_once self.inject([]){|r, el| r + Array(el)} end