diff options
author | gebele <gebele@alfadeo.de> | 2010-07-19 15:19:45 +0200 |
---|---|---|
committer | gebele <gebele@alfadeo.de> | 2010-07-19 15:19:45 +0200 |
commit | d77ec12f83489f92417efc6287ddf8f987795198 (patch) | |
tree | 94625df28e315a3bee485cb587f97cc7b8a1d72e /application.rb | |
parent | 3f497641fc5f302562a3c4e7ffffa228b81738b7 (diff) |
sass position replace in
Diffstat (limited to 'application.rb')
-rwxr-xr-x | application.rb | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/application.rb b/application.rb index 129ef5c..0a6cd6a 100755 --- a/application.rb +++ b/application.rb @@ -13,6 +13,13 @@ LOGGER.progname = File.expand_path __FILE__ use Rack::Flash set :sessions, true + +# SASS stylesheet +get '/stylesheets/style.css' do + headers 'Content-Type' => 'text/css; charset=utf-8' + sass :style +end + class ToxCreateModel include DataMapper::Resource property :id, Serial @@ -26,6 +33,7 @@ class ToxCreateModel property :warnings, Text, :length => 2**32-1 property :nr_compounds, Integer property :created_at, DateTime + def status RestClient.get(File.join(@task_uri, 'hasStatus')).body @@ -432,8 +440,4 @@ end # fail "testing mail delivery" #end -# SASS stylesheet -get '/stylesheets/style.css' do - headers 'Content-Type' => 'text/css; charset=utf-8' - sass :style -end + |