Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Model.id now returns String - more consistent with other attributes' …

…behavior
  • Loading branch information...
commit bbc0124268f55ca15d776604919d22ae4e96b609 1 parent 31af704
@serebryakov serebryakov authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/lib/model/base.rb
View
4 lib/lib/model/base.rb
@@ -448,7 +448,7 @@ def initialize(attributes = {})
##
# Returns objects's unique ID.
#
- # @return [RDF::URI] object's ID
+ # @return [String] object's ID (URI)
##
def id(*args)
@id.nil? ? nil : @id.dup
@@ -625,7 +625,7 @@ def check_for_adapter #nodoc
# Sets ID of this object (must be RDF::URI or a String).
##
def id=(value) #nodoc
- @id = RDF::URI.new(value.to_s)
+ @id = value.to_s
end
##
Please sign in to comment.
Something went wrong with that request. Please try again.