class ActionDispatch::Session::DynamodbStore
@see docs.aws.amazon.com/sdk-for-ruby/aws-sessionstore-dynamodb/api/Aws/SessionStore/DynamoDB/Configuration.html<br><br>Configuration files that are environment-specific will take precedence.
in “config/session_store.yml” or “config/session_store/#{Rails.env}.yml”.
Configuration can also be provided in YAML files from Rails config, either
This class will use the Rails secret_key_base unless otherwise provided.
configuration for session_store from this class name.
extends ActionDispatch::Session. Rails will create a :dynamodb_store
Uses the Dynamo DB Session Store implementation to create a class that
def config_file
def config_file file = Rails.root.join("config/dynamo_db_session_store/#{Rails.env}.yml") file = Rails.root.join('config/dynamo_db_session_store.yml') unless file.exist? file end
def initialize(app, options = {})
def initialize(app, options = {}) options[:config_file] ||= config_file if config_file.exist? options[:secret_key] ||= Rails.application.secret_key_base super end