Commit f231e19b333a9309ab703aad91c909a160e650f8

Authored by Braulio Bhavamitra
1 parent 61707cce

rails4: fix person/save infinite loop

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
app/models/person.rb
... ... @@ -282,7 +282,8 @@ roles] }
282 282 end
283 283  
284 284 after_update do |person|
285   - person.user.save!
  285 + # FIXME: causes infinite loop with rails4
  286 + #person.user.save!
286 287 end
287 288  
288 289 def is_admin?(environment = nil)
... ...