Skip to content
Browse files

Updating Screenshots

  • Loading branch information...
1 parent c7193cc commit bb0f19e3bde33f09b231e181ad05d0f84fdaed9a @jcnetdev committed Oct 1, 2008
View
1 app/controllers/screenshots_controller.rb
@@ -43,7 +43,6 @@ def create
@invalid_screenshots.each{|screenshot| set_flash(screenshot) }
redirect_to project_url(@project)+"#screenshots_add"
end
-
end
def destroy
View
14 lib/authenticated_system.rb
@@ -1,9 +1,15 @@
module AuthenticatedSystem
protected
+ # Inclusion hook to make #current_user and #logged_in?
+ # available as ActionView helper methods.
+ def self.included(base)
+ base.send :helper_method, :current_user, :logged_in?, :anon_user, :current_or_anon_user, :admin?
+ end
+
# Returns true or false if the user is logged in.
# Preloads @current_user with the user model if they're logged in.
def logged_in?
- current_user != :false
+ current_user.is_a? User
end
def current_or_anon_user
@@ -104,12 +110,6 @@ def redirect_back_or_default(default)
session[:return_to] = nil
end
- # Inclusion hook to make #current_user and #logged_in?
- # available as ActionView helper methods.
- def self.included(base)
- base.send :helper_method, :current_user, :logged_in?, :anon_user, :current_or_anon_user, :admin?
- end
-
# Called from #current_user. First attempt to login by the user id stored in the session.
def login_from_session
self.current_user = User.find(session[:user_id]) if session[:user_id]
View
BIN public/images/default_preview.png
Deleted file not rendered
View
BIN public/images/default_screenshot.png
Deleted file not rendered
View
BIN public/images/default_screenshots/medium.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/default_screenshots/original.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/default_screenshots/thumb.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/default_thumb.png
Deleted file not rendered

0 comments on commit bb0f19e

Please sign in to comment.
Something went wrong with that request. Please try again.