spec/dummy/app/synchronizers/player_synchronizer.rb in synchronisable-0.0.4 vs spec/dummy/app/synchronizers/player_synchronizer.rb in synchronisable-0.0.5
- old
+ new
@@ -1,8 +1,6 @@
class PlayerSynchronizer < Synchronisable::Synchronizer
- @gateway = PlayerGateway.new
-
remote_id :player_id
mappings(
:eman_tsrif => :first_name,
:eman_tsal => :last_name,
@@ -12,8 +10,7 @@
:thgiew => :weight,
:team => :team_id
)
only :team_id, :first_name, :last_name
- find { |id| @gateway.find(id) }
- fetch { @gateway.fetch }
+ gateway PlayerGateway
end