sources: rename Sources::Strategies to Source::Extractor.
Rename Sources::Strategies to Source::Extractor. A Source::Extractor represents a thing that extracts information from a given URL.
This commit is contained in:
@@ -4,7 +4,7 @@ class SourcesController < ApplicationController
|
||||
respond_to :js, :json, :xml
|
||||
|
||||
def show
|
||||
@source = Sources::Strategies.find(params[:url], params[:ref])
|
||||
@source = Source::Extractor.find(params[:url], params[:ref])
|
||||
|
||||
respond_with(@source.to_h) do |format|
|
||||
format.xml { render xml: @source.to_h.to_xml(root: "source") }
|
||||
|
||||
Reference in New Issue
Block a user