Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
generate_token calls find_first which require order param #2487
When creating object with FactoryGirl I receive "The method .order() must contain arguments.". I can see that generate_token from devise calls find_first method which does not pass argument for order. In active_record 4 order method there is a method called check_if_method_has_arguments!("order", args) which raises error if order has no arguments.
I'm getting this in development too when logging in using devise.
It's reproducible for me here in an app I started working on today: https://github.com/iHiD/silicon-canal/tree/ac78c31e218b0d70cc081fb193e9e57fe12bb822
I'll try and look further tomorrow.
Since this code adds