Use the standard ruby instance_methods call
Rails 3 has an instance_methods_name extension that returns strings instead of symbols, but that goes away in Rails 4 so just use the standard routine instead.
This commit is contained in:
parent
1234561a78
commit
4a2ecfe8b3
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/../test_helper'
|
|||
class CORSTest < ActionController::IntegrationTest
|
||||
# Rails 4 adds a built-in `options` method. When we upgrade, we can remove
|
||||
# this definition.
|
||||
unless instance_method_names.include?("options")
|
||||
unless instance_methods.include?(:options)
|
||||
def options(*args)
|
||||
reset! unless integration_session
|
||||
@html_document = nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue