Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
tispratik committed Oct 11, 2010
1 parent 383735a commit 75b1151
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions app/controllers/application_controller.rb
Expand Up @@ -27,17 +27,17 @@ def remove_param
params.delete_if {|key, value| value == "ANY" }
end

def ssl_supported?
true
end

def ssl_required
if !request.ssl? && ssl_supported?
redirect_to :protocol => "https"
flash.keep
return false
end
end
# def ssl_supported?
# true
# end
#
# def ssl_required
# if !request.ssl? && ssl_supported?
# redirect_to :protocol => "https"
# flash.keep
# return false
# end
# end

def find_project
@project = @calendarable = Project.find_by_permalink(UrlStore.decode(params[:project_id]))
Expand All @@ -46,7 +46,7 @@ def find_project
return
end
if @project.use_ssl?
ssl_required
true
end
end

Expand Down

0 comments on commit 75b1151

Please sign in to comment.