Open murny opened 1 year ago
Is this where the serialization code is used? https://github.com/ualbertalib/oaisys/blob/4d0f657480658343ba01cfe39f71ef0060ccdcab/app/views/oaisys/pmh/list_records.xml.builder#L33
Looks like your right! Will remove that bullet 👍
add_annotation_bindings!
is used to add the methods to ActiveStorage::Blob, I think :thinking:
Yeah, it's being used in a few places, but I'm not sure why?
E.g ActiveStorage::Blob inherits from ActiveRecord::Base, therefore it would get acts_as_rdfable
included via lib/acts_as_rdfable/active_record.rb
which includes ActsAsRDFable into all ActiveRecord::Base
Basically, we got two different ways to include this gem, which seems odd. Unless this gem is being used with a "non-active record" class 🤔
It appears there may be some low-hanging fruit for quick refactors and improvements to this gem.
I see a few improvements:
ActsAsRdfableCore
?add_annotation_bindings!
when all models currently include this gem? Is it a good idea to make all models include this gem?ActiveSupport::Configurable
instead of our own code insideconfig.rb