Skip to content

Commit

Permalink
Merge pull request #60 from erran/patch-2
Browse files Browse the repository at this point in the history
Set role.id to -1 by default on initialization. Also #57
  • Loading branch information
mdaines-r7 committed Apr 29, 2014
2 parents 528a0a7 + 63b9bd8 commit 4aa434b
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 4aa434b

Please sign in to comment.