forked from openSUSE/open-build-service
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[webui][api] Get rid of WebuiProject in webui/project_controller.rb
* Make some of the rubocop metric rules not fail * revoke requests when projects get deleted * Introduce set_project before_filter and use it * Limit :require_project before filter (and hence WebuiProject) to move_path_* The path_elements list of repositories needs a little more thought. acts_as_list would be an option but that means removing the uniqe key in the db for partent_id and position * Move all the support methods down in the file * Move some of the methods into the project model * authorize all calls that change the project * Rename CRUD the methods * Use strong parameters * Concat all the stupid history_element files into one for lazy loading * Also fix the history_elements fixtures, rake db:fixtures:load works again now...
- Loading branch information
1 parent
d2aacc4
commit 8b4d426
Showing
48 changed files
with
1,000 additions
and
964 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.