lib/active_fedora/rdf/persistence.rb in active-fedora-9.7.0 vs lib/active_fedora/rdf/persistence.rb in active-fedora-9.7.1
- old
+ new
@@ -8,11 +8,11 @@
# @see ActiveFedora::RDF::ObjectResource
#
module Persistence
extend ActiveSupport::Concern
- BASE_URI = 'info:fedora/'
+ BASE_URI = 'info:fedora/'.freeze
included do
configure base_uri: BASE_URI unless base_uri
attr_accessor :datastream
end
@@ -23,10 +23,10 @@
@persisted ||= datastream.save
end
# Overrides ActiveTriples::Resource
def persisted?
- @persisted ||= (!datastream.new_record?)
+ @persisted ||= !datastream.new_record?
end
end
end
end