Sha256: 8fec7aebc1adb3e945d723a12f96530713bcabd43493f6b5a7e5e33342c048b8
Contents?: true
Size: 450 Bytes
Versions: 1
Compression:
Stored size: 450 Bytes
Contents
require 'simple_token_authentication/token_authenticatable' module SimpleTokenAuthentication module ActsAsTokenAuthenticatable # This module ensures that no TokenAuthenticatable behaviour # is added before the class actually `acts_as_token_authenticatable`. def acts_as_token_authenticatable(options = {}) include SimpleTokenAuthentication::TokenAuthenticatable before_save :ensure_authentication_token end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_token_authentication-1.9.0 | lib/simple_token_authentication/acts_as_token_authenticatable.rb |