Skip to content

v 0.12.0

Compare
Choose a tag to compare
@val99erie val99erie released this 29 Apr 03:21
· 723 commits to master since this release

Upgrade Notes

Actors

The actors have been re-architected, so if your app has any code that uses actors, note that the arity of some methods has changed. In particular, attributes are no longer passed to the initializer, instead they are passed to individual methods.

The old way (version 0.11)

actor = CurationConcerns::CurationConcern.actor(GenericWork.new, user, attributes)
actor.create

The new way (version 0.12)

actor = CurationConcerns::CurationConcern.actor(GenericWork.new, user)
actor.create(attributes)

CanCan Abilities

In version 0.11, the default abilities for an admin user were broader. They were analogous to can :manage, :all.

This change narrowed the scope of what an admin user has permission to do by default. So, you may need to grant some new abilities to your admin user if any abilities have been lost by this change.

WorkActorBehavior

CurationConcerns::WorkActorBehavior has been deprecated and no longer contains any code. If you are including that module in any of your models, you should remove it.

Collections

The hydra-collections gem has now been merged into curation_concerns, so search your codebase for the string "Hydra::Collection".

  • In the routes file, remove mount Hydra::Collections::Engine => '/'
  • In your models, remove include Hydra::Collections::BasicMetadata
  • Update your paths/urls in your code and specs. For example, just use new_collection_path instead of Hydra::Collections::Engine.routes.url_helpers.new_collection_path