class RR::LoggedChangeLoaders
Makes management of logged change loaders easier
Attributes
loaders[RW]
A hash of LoggedChangeLoader
instances for the :left
and :right
database
session[RW]
The current Session
Public Class Methods
new(session)
click to toggle source
Create new logged change loaders.
-
session
: CurrentSession
# File lib/rubyrep/logged_change_loader.rb, line 14 def initialize(session) self.session = session self.loaders = {} [:left, :right].each do |database| loaders[database] = LoggedChangeLoader.new(session, database) end end
Public Instance Methods
[](database)
click to toggle source
Returns the LoggedChangeLoader
for the specified (:left
or :right
) database.
# File lib/rubyrep/logged_change_loader.rb, line 24 def [](database) loaders[database] end
update()
click to toggle source
Forces an update of the change log cache
# File lib/rubyrep/logged_change_loader.rb, line 29 def update [:left, :right].each {|database| self[database].update :forced => true} end