Skip to content

Commit

Permalink
Merge pull request #240 from sul-dlss/update-deprecation
Browse files Browse the repository at this point in the history
Update deprecation
  • Loading branch information
Darren Hardy committed Apr 14, 2015
2 parents 7e75457 + 682610f commit e048520
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/concerns/geomonitor_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def available?
end

def score_meets_threshold?
score = get(:layer_availability_score_f)
score = fetch(:layer_availability_score_f, {})
if score.present?
score > Settings.GEOMONITOR_TOLERANCE
else
Expand Down
2 changes: 1 addition & 1 deletion app/models/concerns/rights_metadata_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module RightsMetadataConcern
extend Geoblacklight::SolrDocument

def rights_metadata
RightsMetadata.new(get(:stanford_rights_metadata_s))
RightsMetadata.new(fetch(:stanford_rights_metadata_s, {}))
end
end
2 changes: 1 addition & 1 deletion app/models/concerns/wms_rewrite_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ def is_stanford_restricted?
end

def stanford?
get(:dct_provenance_s).downcase == 'stanford'
fetch(:dct_provenance_s).downcase == 'stanford'
end
end
File renamed without changes.

0 comments on commit e048520

Please sign in to comment.