projects
/
selectricity-live
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Major integration of Courtland's design into the QuickVotes.
[selectricity-live]
/
app
/
controllers
/
application.rb
diff --git
a/app/controllers/application.rb
b/app/controllers/application.rb
index 9b4803092dfc48e4c3ed6a006204de60ae39323e..aeb2204f38ef75015b229032463114d7975330be 100644
(file)
--- a/
app/controllers/application.rb
+++ b/
app/controllers/application.rb
@@
-5,5
+5,17
@@
class ApplicationController < ActionController::Base
include AuthenticatedSystem
helper :user
require_dependency "user"
include AuthenticatedSystem
helper :user
require_dependency "user"
-
+ before_filter :add_stylesheets
+
+ def initialize
+ @stylesheets = []
+ end
+
+ def add_stylesheets
+ file = "#{Dir.pwd}/public/stylesheets/#{controller_name}.css"
+ if File.exists? file
+ @stylesheets << controller_name
+ end
+ end
+
end
end
Benjamin Mako Hill
||
Want to submit a patch?