Sha256: de48299d88b73dc94826402746bcc95a3a8eae4c74cafd5afa8371f241b9b99c

Contents?: true

Size: 970 Bytes

Versions: 2

Compression:

Stored size: 970 Bytes

Contents

# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
#     http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.


module AWS::SessionStore::DynamoDB
  class Railtie < Rails::Railtie
    initializer 'aws-sessionstore-dynamodb-rack-middleware' do
      ActionDispatch::Session::DynamodbStore = AWS::SessionStore::DynamoDB::RackMiddleware
    end

    # Load all rake tasks
    rake_tasks do
      Dir[File.expand_path("../tasks/*.rake", __FILE__)].each do |rake_task|
        load rake_task
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aws-sessionstore-dynamodb-0.5.1 lib/aws/session_store/dynamo_db/railtie.rb
aws-sessionstore-dynamodb-0.5.0 lib/aws/session_store/dynamo_db/railtie.rb