mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
make webrat compatible with rails 4.1
This commit is contained in:
parent
9dbc60d36d
commit
1b1be514c8
1 changed files with 10 additions and 0 deletions
10
test/support/action_controller/record_identifier.rb
Normal file
10
test/support/action_controller/record_identifier.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Since webrat uses ActionController::RecordIdentifier class that was moved to
|
||||
# ActionView namespace in Rails 4.1+
|
||||
|
||||
unless defined?(ActionController::RecordIdentifier)
|
||||
require 'action_view/record_identifier'
|
||||
|
||||
module ActionController
|
||||
RecordIdentifier = ActionView::RecordIdentifier
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue