Sha256: 75cc9e4842ce0a30b97ab85b85ec8c576565c59f0f7a62337eca482de29ea9ab

Contents?: true

Size: 319 Bytes

Versions: 22

Compression:

Stored size: 319 Bytes

Contents

# config/initializers/devise_safe_store_location.rb
module SafeStoreLocation

  MAX_LOCATION_SIZE = ActionDispatch::Cookies::MAX_COOKIE_SIZE / 2

  def store_location_for(resource_or_scope, location)
    super unless location && location.size > MAX_LOCATION_SIZE
  end

end

Devise::FailureApp.include SafeStoreLocation

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.22.8 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.22.7 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.22.6 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.22.5 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.22.4 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.22.2 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.22.1 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.22.0 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.21.2 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.21.1 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.21.0 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.20.1 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.19.9 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.19.8 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.19.7 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.19.6 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.19.5 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.19.4 config/initializers/devise_safe_store_location.rb
think_feel_do_engine-3.19.3 config/initializers/devise_safe_store_location.rb