Module: HasTokenable::ActiveRecordTie

Defined in:
lib/has_tokenable.rb

Instance Method Summary collapse

Instance Method Details

#has_tokenable(options = {}) ⇒ Object



9
10
11
12
# File 'lib/has_tokenable.rb', line 9

def has_tokenable(options={})
  self.send(:include, HasTokenable::Concern)
  @has_tokenable_options ||= HasTokenable.default_token_options.merge(options)
end

#has_tokenable_optionsObject



14
15
16
# File 'lib/has_tokenable.rb', line 14

def has_tokenable_options
  @has_tokenable_options ||= HasTokenable.default_token_options
end