Sha256: 21b010c12c910c9332de459fbb7507308d33bee6e69870a5d6cb0eab67d81d59

Contents?: true

Size: 344 Bytes

Versions: 18

Compression:

Stored size: 344 Bytes

Contents

require 'backports/tools/deprecation'

Backports.deprecate :rails, 'Rails backports are deprecated.'

class Array
  # See official documentation[http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/ExtractOptions.html]
  def extract_options!
    last.is_a?(::Hash) ? pop : {}
  end unless method_defined? :extract_options!
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
backports-3.25.0 lib/backports/rails/array.rb
backports-3.24.1 lib/backports/rails/array.rb
backports-3.24.0 lib/backports/rails/array.rb
backports-3.23.0 lib/backports/rails/array.rb
backports-3.22.1 lib/backports/rails/array.rb
backports-3.22.0 lib/backports/rails/array.rb
backports-3.21.0 lib/backports/rails/array.rb
backports-3.20.2 lib/backports/rails/array.rb
backports-3.20.1 lib/backports/rails/array.rb
backports-3.20.0 lib/backports/rails/array.rb
backports-3.19.0 lib/backports/rails/array.rb
backports-3.18.2 lib/backports/rails/array.rb
backports-3.18.1 lib/backports/rails/array.rb
backports-3.18.0 lib/backports/rails/array.rb
backports-3.17.2 lib/backports/rails/array.rb
backports-3.17.1 lib/backports/rails/array.rb
backports-3.17.0 lib/backports/rails/array.rb
backports-3.16.1 lib/backports/rails/array.rb