lib/scim/kit/v2/meta.rb in scim-kit-0.2.14 vs lib/scim/kit/v2/meta.rb in scim-kit-0.2.15
- old
+ new
@@ -10,10 +10,10 @@
attr_accessor :created, :last_modified, :version
attr_reader :location
attr_reader :resource_type
def initialize(resource_type, location)
- @resource_type = resource_type
+ @resource_type = resource_type || 'Unknown'
@location = location
@created = @last_modified = Time.now
@version = @created.to_i
end