mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
AWS caused Rubinius to be sad. Fixed
This commit is contained in:
parent
bbbb3a1886
commit
d8528071f0
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ module ActionWebService # :nodoc:
|
|||
begin
|
||||
require_dependency(file_name)
|
||||
rescue LoadError => load_error
|
||||
requiree = / -- (.*?)(\.rb)?$/.match(load_error).to_a[1]
|
||||
requiree = / -- (.*?)(\.rb)?$/.match(load_error.to_s).to_a[1]
|
||||
msg = requiree == file_name ? "Missing API definition file in apis/#{file_name}.rb" : "Can't load file: #{requiree}"
|
||||
raise LoadError.new(msg).copy_blame!(load_error)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue