Module: HasTokenId::ActiveRecordTie

Defined in:
lib/has_token_id.rb

Instance Method Summary collapse

Instance Method Details

#has_token_id(options = {}) ⇒ Object



10
11
12
13
# File 'lib/has_token_id.rb', line 10

def has_token_id(options={})
  self.send(:include, HasTokenId::Concern)
  @has_token_id_options ||= HasTokenId.default_token_options.merge(options)
end

#has_token_id_optionsObject



15
16
17
# File 'lib/has_token_id.rb', line 15

def has_token_id_options
  @has_token_id_options ||= HasTokenId.default_token_options
end