Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Markech
refinerycms-photo-gallery
Commits
3afe028a
Commit
3afe028a
authored
Sep 21, 2012
by
Martin Markech
Browse files
flash support is broken, so deleting all that files. we have html5, I think we dont need flash
parent
1a81252e
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
3afe028a
...
...
@@ -191,7 +191,6 @@ Remove gem from Gemfile
*
add support for amazon S3 storage
*
create app tests
*
repair problems with Flash runtime and test gears, silverlight and HTML4 runtime
*
show live links in admin
*
allow to check which photo is photo album preview
*
set albums public/not public.
...
...
app/middleware/refinery/photo_gallery/admin/flash_session_cookie_middleware.rb
deleted
100644 → 0
View file @
1a81252e
=begin
#TODO fix Flash runtime
require 'rack/utils'
module Refinery
module PhotoGallery
module Admin
class FlashSessionCookieMiddleware
def initialize(app, session_key = '_session_id')
@app = app
@session_key = session_key
end
def call(env)
if env['HTTP_USER_AGENT'] =~ /^(Adobe|Shockwave) Flash/
req = Rack::Request.new(env)
env['HTTP_COOKIE'] = [ @session_key,
req.params[@session_key] ].join('=').freeze unless req.params[@session_key].nil?
env['HTTP_ACCEPT'] = "#{req.params['_http_accept']}".freeze unless req.params['_http_accept'].nil?
end
@app.call(env)
end
end
end
end
end
=end
\ No newline at end of file
config/initializers/session_store.rb
deleted
100644 → 0
View file @
1a81252e
#Rails.application.config.session_store :cookie_store, :key => '_balder_session'
=begin
#TODO fix flash runtime
Rails.application.config.middleware.insert_before(
Rails.application.config.session_store,
Refinery::PhotoGallery::Admin::FlashSessionCookieMiddleware,
Rails.application.config.session_options[:key]
)
=end
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment