# File lib/tapkit/access/database_context.rb, line 7 def handle_notification( notification ) case notification.name when ObjectStoreCoordinator::COS_NEEDED_NOTIFICATION coordinator = notification.object entity_name = notification.userinfo[:object].entity_name application = notification.userinfo[:application] entity = application.model_group.entity entity_name model = entity.model database = application.database model context = DatabaseContext.new database coordinator.add_cooperating_object_store context end end