Sha256: 8ac5bb6ba645f18f32a2d0966cbf0f1cc07fd5644fb343ddd5b9d8b534dd2b2a

Contents?: true

Size: 437 Bytes

Versions: 1

Compression:

Stored size: 437 Bytes

Contents

Spree::BaseController.class_eval do
   before_filter :dua_setup

   private

   def dua_setup
     if Spree::Config.get(:dua_enabled)
       unless cookies[:dua_been_warned]
         @dua_enabled = Spree::Config.get(:dua_enabled) || true
         @dua_message = Spree::Config.get(:dua_message) || "Your Browser is outdated, please upgrade to the latest version."
         cookies[:dua_been_warned] = true
       end
     end
   end
 end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_deprecated_user_agents-0.1.0 app/controllers/spree/base_controller_decorator.rb