fulcrum-agile / fulcrum

An agile project planning tool
http://wholemeal.co.nz/projects/fulcrum.html
GNU Affero General Public License v3.0
1.5k stars 350 forks source link

find_or_create_by_email deprecated in Rails 4.1.4 #243

Closed baschtl closed 10 years ago

baschtl commented 10 years ago

In https://github.com/fulcrum-agile/fulcrum/blob/master/app/controllers/users_controller.rb#L15 User.find_or_create_by_email is used. This throws a NoMethodError. Instead, User.where(email: 'email@email.com').first_or_create should be used.

I try to create a PR for this in the next days.

baschtl commented 10 years ago

Is already tackled by https://github.com/fulcrum-agile/fulcrum/pull/239.