Class: Array
Instance Method Summary collapse
-
#_extract_options! ⇒ Object
Rails 1.2.3 compatibility method.
-
#_flatten_once ⇒ Object
Flattens the first level of self.
Instance Method Details
#_extract_options! ⇒ Object
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
39 40 41 |
# File 'lib/has_many_polymorphs/support_methods.rb', line 39 def last.is_a?(::Hash) ? pop : {} end |