class ViewModel::AccessControl
def save_editability(view, initial_editability)
def save_editability(view, initial_editability) if @initial_editability_store.has_key?(view.object_id) raise RuntimeError.new("Access control data already recorded for view #{view.to_reference}") end @initial_editability_store[view.object_id] = initial_editability end