Skip to content

Commit

Permalink
Avoid uninitialized variable @model_name warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth committed Nov 22, 2014
1 parent 4b17814 commit 0a7120c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/global_id/uri/gid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def to_s

protected
def set_path(path)
set_model_components(path) unless @model_name && @model_id
set_model_components(path) unless defined?(@model_name) && @model_id
super
end

Expand Down

0 comments on commit 0a7120c

Please sign in to comment.