not a huge fan of having 'enable_repository' do both enabling and disabling.  toggle_repository perhaps?  If you don't want to change it, i'll let it slide since we'll hopefully angular this page.