Skip to content

Commit

Permalink
Adding deprecation warnings if fedora_version is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
escowles committed Dec 5, 2018
1 parent 72d7be3 commit 3cee31d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/valkyrie/persistence/fedora/metadata_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def initialize(connection:, base_path: "/", schema: Valkyrie::Persistence::Fedor
@base_path = base_path
@schema = schema
@fedora_version = fedora_version

warn "[DEPRECATION] `fedora_version` will default to 5 in the next major release." unless fedora_version
end

# Construct the query service object using this adapter
Expand Down
2 changes: 2 additions & 0 deletions lib/valkyrie/storage/fedora.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ def initialize(connection:, base_path: "/", fedora_version:)
@connection = connection
@base_path = base_path
@fedora_version = fedora_version

warn "[DEPRECATION] `fedora_version` will default to 5 in the next major release." unless fedora_version
end

# @param id [Valkyrie::ID]
Expand Down

0 comments on commit 3cee31d

Please sign in to comment.