Skip to content

Commit

Permalink
Set role.id to -1 by default on initialization
Browse files Browse the repository at this point in the history
+ Fix #57
  • Loading branch information
erran committed Apr 29, 2014
1 parent 528a0a7 commit 63b9bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nexpose/role.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class Role < RoleSummary
# Flag determines behavior of #save method.
attr_accessor :existing

def initialize(name, full_name, id, enabled = true, scope = Scope::SILO)
def initialize(name, full_name, id = -1, enabled = true, scope = Scope::SILO)
@name, @full_name, @id, @enabled, @scope = name, full_name, id, enabled, scope
@privileges = []
end
Expand Down

0 comments on commit 63b9bd8

Please sign in to comment.