Sha256: 9106200e992002ea6b889c07d2fab019d213d656433a1a5c84650532dac7b66d

Contents?: true

Size: 249 Bytes

Versions: 7

Compression:

Stored size: 249 Bytes

Contents

class Aerogel::Application

get "/*" do |filename|
  pass if filename.blank?
  path = Aerogel.get_resource( :public, filename )
  puts "Serving static file: '#{path}' or not?"
  pass unless path
  send_file path
end

end # class Aerogel::Application

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
aerogel-core-1.1.1 app/routes/static.rb
aerogel-core-1.1.0 app/routes/static.rb
aerogel-core-1.0.4 app/routes/static.rb
aerogel-core-1.0.3 app/routes/static.rb
aerogel-core-1.0.2 app/routes/static.rb
aerogel-core-1.0.1 app/routes/static.rb
aerogel-core-1.0.0 app/routes/static.rb