Fix WrongScopeError
being thrown on Rails master:
#2215
Merged
WrongScopeError
being thrown on Rails master:
#2215