Skip to content

Commit

Permalink
[ci] Fix RailsCop rubocop offences
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBr committed Sep 1, 2015
1 parent 5444eda commit bcec934
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/app/models/relationship.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ class SaveError < APIException; end

validate :check_global_role

validates_uniqueness_of :project_id, {
validates :project_id, uniqueness: {
scope: [:role_id, :group_id, :user_id], allow_nil: true,
message: "Project has non unique id"
}
validates_uniqueness_of :package_id, {
validates :package_id, uniqueness: {
scope: [:role_id, :group_id, :user_id], allow_nil: true,
message: "Package has non unique id"
}
Expand Down

0 comments on commit bcec934

Please sign in to comment.