summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2011-08-14 14:35:09 +0200
committerAlex Legler <alex@a3li.li>2011-08-14 14:35:09 +0200
commit2504a90a05f83eaede3bf2d888fce48ae715f920 (patch)
treee5b8b96c4b305b78f5e55ea74882ea1a35d4ef5c /lib
parentUpdate to rails 2.3.12 and use Bundler (diff)
downloadglsamaker-2504a90a05f83eaede3bf2d888fce48ae715f920.tar.gz
glsamaker-2504a90a05f83eaede3bf2d888fce48ae715f920.tar.bz2
glsamaker-2504a90a05f83eaede3bf2d888fce48ae715f920.zip
First set of rails3 updates
.rails2 backups are still there, to be merged and removed on completion.
Diffstat (limited to 'lib')
-rw-r--r--lib/assets/.gitkeep0
-rw-r--r--lib/authentication.rb2
-rw-r--r--lib/tasks/.gitkeep0
3 files changed, 1 insertions, 1 deletions
diff --git a/lib/assets/.gitkeep b/lib/assets/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/lib/assets/.gitkeep
diff --git a/lib/authentication.rb b/lib/authentication.rb
index 5982201..ea0a2b4 100644
--- a/lib/authentication.rb
+++ b/lib/authentication.rb
@@ -15,7 +15,7 @@ module Authentication
# Login filter to be applied to *all* pages on GLSAMaker
def login_required
# Production authentication via REMOTE_USER
- if RAILS_ENV == "production" or GLSAMAKER_FORCE_PRODUCTION_AUTH
+ if Rails.env.production? or GLSAMAKER_FORCE_PRODUCTION_AUTH
# REMOTE_USER should be there in FCGI or Passenger
env_user_name = user_name
diff --git a/lib/tasks/.gitkeep b/lib/tasks/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/lib/tasks/.gitkeep