Skip to content

Instantly share code, notes, and snippets.

@maciejsmolinski
Created August 8, 2011 02:53
Show Gist options
  • Save maciejsmolinski/1131122 to your computer and use it in GitHub Desktop.
Save maciejsmolinski/1131122 to your computer and use it in GitHub Desktop.
class BattleObserver < ActiveRecord::Observer
def after_save(battle)
BattleComputation.new(battle).update_users_states
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment