Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove prefix method from File #1097

Merged
merged 1 commit into from
Jun 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 0 additions & 8 deletions lib/active_fedora/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,6 @@ def self.relation
end
private_class_method :relation

protected

# The string to prefix all solr fields with. Override this method if you want
# a prefix other than the default
def prefix(path)
path ? "#{path.underscore}__" : ''
end

private

def create_or_update(*options)
Expand Down
8 changes: 8 additions & 0 deletions lib/active_fedora/om_datastream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,13 @@ def update_values(params = {})
result = om_update_values(params)
result
end

protected

# The string to prefix all solr fields with. Override this method if you want
# a prefix other than the default
def prefix(path)
path ? "#{path.underscore}__" : ''
end
end
end
6 changes: 6 additions & 0 deletions lib/active_fedora/rdf/datastream_indexing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,11 @@ def prefix_method(file_path)
def apply_prefix(name, file_path)
prefix(file_path) + name.to_s
end

# The string to prefix all solr fields with. Override this method if you want
# a prefix other than the default
def prefix(path)
path ? "#{path.underscore}__" : ''
end
end
end