Module: AnimalCracker::Server

Defined in:
lib/animalcracker.rb

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/animalcracker.rb', line 7

def self.extended(base)
  base.get("*") do
    begin
      params[:splat].first.split(",").map { |asset_path| AssetHost[asset_path] || not_found }
    rescue NotFound
      not_found
    end
  end
end