Permalink
Browse files

backport for ruby 1.8.7

  • Loading branch information...
1 parent f7a0285 commit eea25a752c64ee15fddaab0af05401ae627546a1 @rossta committed May 7, 2012
View
@@ -6,7 +6,8 @@ module OpenSesame
autoload :ViewHelper, 'open_sesame/view_helper'
autoload :FailureApp, 'open_sesame/failure_app'
- delegate *Configuration::CONFIGURABLE_ATTRIBUTES, :to => :configuration
+ @to_configuration = Configuration::CONFIGURABLE_ATTRIBUTES + [:to => :configuration]
+ delegate *@to_configuration
delegate :enabled?, :to => :configuration
mattr_accessor :configuration
@@ -2,7 +2,7 @@ module OpenSesame
module ViewHelper
def login_image_link_to(provider)
- link_to identity_request_path(provider), class: "btn btn-large" do
+ link_to identity_request_path(provider), :class => "btn btn-large" do
image_tag("open_sesame/#{provider}_64.png") + "<br/><span>#{provider}</span>".html_safe
end
end
@@ -1,6 +1,6 @@
# Be sure to restart your server when you modify this file.
-Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
+Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
@@ -5,7 +5,7 @@
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
ActiveSupport.on_load(:action_controller) do
- wrap_parameters format: [:json]
+ wrap_parameters :format => [:json]
end
# Disable root element in JSON by default.

0 comments on commit eea25a7

Please sign in to comment.