Sha256: 932fab2c3c872dff879fae4abbbfce1f2688c2a48dc1ae446980ea4c290c28af

Contents?: true

Size: 395 Bytes

Versions: 17

Compression:

Stored size: 395 Bytes

Contents

module Alchemy
  module BaseControllerExtension
    def self.prepended(base)
      base.before_action(:store_user_request_time)
    end

    private

    # Stores the users request time.
    def store_user_request_time
      if alchemy_user_signed_in?
        current_alchemy_user.store_request_time!
      end
    end
  end
end

Alchemy::BaseController.prepend Alchemy::BaseControllerExtension

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
alchemy-devise-7.3.0 app/controllers/alchemy/base_controller_extension.rb
alchemy-devise-7.2.0 app/controllers/alchemy/base_controller_extension.rb
alchemy-devise-7.1.2 app/controllers/alchemy/base_controller_extension.rb
alchemy-devise-7.1.1 app/controllers/alchemy/base_controller_extension.rb
alchemy-devise-7.1.0 app/controllers/alchemy/base_controller_extension.rb
alchemy-devise-7.0.0 app/controllers/alchemy/base_controller_extension.rb
alchemy-devise-6.3.0 app/controllers/alchemy/base_controller_extension.rb
alchemy-devise-6.2.0 app/controllers/alchemy/base_controller_extension.rb
alchemy-devise-6.1.0 app/controllers/alchemy/base_controller_extension.rb
alchemy-devise-6.0.0 app/controllers/alchemy/base_controller_extension.rb
alchemy-devise-5.1.0 app/controllers/alchemy/base_controller_extension.rb
alchemy-devise-5.0.1 app/controllers/alchemy/base_controller_extension.rb
alchemy-devise-5.0.0 app/controllers/alchemy/base_controller_extension.rb
alchemy-devise-4.6.0 app/controllers/alchemy/base_controller_extension.rb
alchemy-devise-4.5.0 app/controllers/alchemy/base_controller_extension.rb
alchemy-devise-4.4.0 app/controllers/alchemy/base_controller_extension.rb
alchemy-devise-4.3.1 app/controllers/alchemy/base_controller_extension.rb